Fixes invalid memory access.
Showing the changes to libavcodec/ppc (1 of 6 files). Show all
Unified · Split
| @@ -750,7 +750,7 @@ av_cold void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth, · 749 unmodified lines | |||
| 750 | 750 | ||
| 751 | if (bit_depth == 8) { | 751 | if (bit_depth == 8) { |
| 752 | c->h264_idct_add = h264_idct_add_altivec; | 752 | c->h264_idct_add = h264_idct_add_altivec; |
| 753 | if (chroma_format_idc == 1) | 753 | if (chroma_format_idc <= 1) |
| 754 | c->h264_idct_add8 = h264_idct_add8_altivec; | 754 | c->h264_idct_add8 = h264_idct_add8_altivec; |
| 755 | c->h264_idct_add16 = h264_idct_add16_altivec; | 755 | c->h264_idct_add16 = h264_idct_add16_altivec; |
| 756 | c->h264_idct_add16intra = h264_idct_add16intra_altivec; | 756 | c->h264_idct_add16intra = h264_idct_add16intra_altivec; |