[FFmpeg-cvslog] Set maximum lowres value for the MJPEG decoder to 3.

Carl Eugen Hoyos git
Sat Feb 12 15:43:24 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Feb 12 15:29:10 2011 +0100| [27a275e4bbfb2e8a345ba151ab8f80d9f5963b9c] | committer: Carl Eugen Hoyos

Set maximum lowres value for the MJPEG decoder to 3.

While 4 works for some samples, 3 is the correct value since 8x8
DCT is used by (m)jpeg.

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

 libavcodec/mjpegdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index fbc637a..dbfd599 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)"),
 };
 




More information about the ffmpeg-cvslog mailing list