Showing the changes to libavcodec/ppc (1 of 24 files). Show all
Unified · Split
| @@ -999,12 +999,13 @@ void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) { · 998 unmodified lines | ||
| 999 | 999 | } |
| 1000 | 1000 | } |
| 1001 | 1001 | |
| 1002 | −void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth) | |
| 1002 | +void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) | |
| 1003 | 1003 | { |
| 1004 | 1004 | if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { |
| 1005 | 1005 | if (bit_depth == 8) { |
| 1006 | 1006 | c->h264_idct_add = ff_h264_idct_add_altivec; |
| 1007 | − c->h264_idct_add8 = ff_h264_idct_add8_altivec; | |
| 1007 | + if (chroma_format_idc == 1) | |
| 1008 | + c->h264_idct_add8 = ff_h264_idct_add8_altivec; | |
| 1008 | 1009 | c->h264_idct_add16 = ff_h264_idct_add16_altivec; |
| 1009 | 1010 | c->h264_idct_add16intra = ff_h264_idct_add16intra_altivec; |
| 1010 | 1011 | c->h264_idct_dc_add= h264_idct_dc_add_altivec; |