[FFmpeg-cvslog] avcodec/fdctdsp: use the 10bit code for 9 bit too

Michael Niedermayer git at videolan.org
Sat Dec 20 18:52:08 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 20 18:32:50 2014 +0100| [bb852f0066880a79002f60589106d531bd698850] | committer: Michael Niedermayer

avcodec/fdctdsp: use the 10bit code for 9 bit too

9bit is currently not used

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb852f0066880a79002f60589106d531bd698850
---

 libavcodec/fdctdsp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/fdctdsp.c b/libavcodec/fdctdsp.c
index c4b7358..b9c2c86 100644
--- a/libavcodec/fdctdsp.c
+++ b/libavcodec/fdctdsp.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list