[FFmpeg-devel] [PATCH 4/4] Set maximum lowres value for the MJPEG decoder to 3.

Janne Grunau janne-ffmpeg
Wed Feb 16 10:39:35 CET 2011


From: Carl Eugen Hoyos <cehoyos at ag.or.at>

While 4 works for some samples, 3 is the correct value since 8x8
DCT is used by (m)jpeg.
---
 libavcodec/mjpegdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 69a1837..d0fc524 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1547,7 +1547,7 @@ AVCodec ff_mjpeg_decoder = {
     ff_mjpeg_decode_frame,
     CODEC_CAP_DR1,
     NULL,
-    .max_lowres = 4,
+    .max_lowres = 3,
     .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"),
 };
 
-- 
1.7.4




More information about the ffmpeg-devel mailing list