X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fidctdsp.c;h=846ed0b0f8322315d9f20b70bee18f6bb61b1af7;hb=9f4af97aff899571663342fbe68df8caee30097f;hp=662033bd78076e3990a7ce62bfb92131ff13c66b;hpb=b13a1210a242d2b3177592ec8687c6f579bff156;p=ffmpeg diff --git a/libavcodec/idctdsp.c b/libavcodec/idctdsp.c index 662033bd780..846ed0b0f83 100644 --- a/libavcodec/idctdsp.c +++ b/libavcodec/idctdsp.c @@ -258,9 +258,11 @@ av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) { /* 10-bit MPEG-4 Simple Studio Profile requires a higher precision IDCT However, it only uses idct_put */ - if (avctx->codec_id == AV_CODEC_ID_MPEG4 && avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO) + if (c->mpeg4_studio_profile) { c->idct_put = ff_simple_idct_put_int32_10bit; - else { + c->idct_add = NULL; + c->idct = NULL; + } else { c->idct_put = ff_simple_idct_put_int16_10bit; c->idct_add = ff_simple_idct_add_int16_10bit; c->idct = ff_simple_idct_int16_10bit;