X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fidctdsp.c;h=ae804d999a4ebc26cde0e5c9eef0ee051160e16d;hb=cba3a46e936cca55d37bebf2e6b381c9a7c5d372;hp=b4972211de8674e753b074678bfe7e4530e49feb;hpb=6c7b153d97b5e283d3a06096dc9b3b64ed756fdb;p=ffmpeg diff --git a/libavcodec/idctdsp.c b/libavcodec/idctdsp.c index b4972211de8..ae804d999a4 100644 --- a/libavcodec/idctdsp.c +++ b/libavcodec/idctdsp.c @@ -258,7 +258,7 @@ av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) c->idct = ff_j_rev_dct1; c->perm_type = FF_IDCT_PERM_NONE; } else { - if (avctx->bits_per_raw_sample == 10) { + if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) { c->idct_put = ff_simple_idct_put_10; c->idct_add = ff_simple_idct_add_10; c->idct = ff_simple_idct_10;