]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/fdctdsp.c
avcodec/loco: Support LOCO reference encoder with odd width
[ffmpeg] / libavcodec / fdctdsp.c
index c4b7358caf646de49037eb25993d59d61da24f81..b9c2c86322c632eab68c81df59cf87f6dc915ef2 100644 (file)
@@ -27,7 +27,7 @@ av_cold void ff_fdctdsp_init(FDCTDSPContext *c, AVCodecContext *avctx)
 {
     const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8;
 
-    if (avctx->bits_per_raw_sample == 10) {
+    if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) {
         c->fdct    = ff_jpeg_fdct_islow_10;
         c->fdct248 = ff_fdct248_islow_10;
     } else if (avctx->dct_algo == FF_DCT_FASTINT) {