From 27a275e4bbfb2e8a345ba151ab8f80d9f5963b9c Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 12 Feb 2011 15:29:10 +0100 Subject: [PATCH] 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. --- libavcodec/mjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index fbc637aa30..dbfd59905b 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)"), };