[FFmpeg-cvslog] avcodec/mjpegdec: only run EOI emulation code when there was a scan
Michael Niedermayer
git at videolan.org
Sun Jan 19 05:04:41 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jan 19 04:56:13 2014 +0100| [361e27a3d8096baacc45d2551a1ebfcbfdaa6a67] | committer: Michael Niedermayer
avcodec/mjpegdec: only run EOI emulation code when there was a scan
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=361e27a3d8096baacc45d2551a1ebfcbfdaa6a67
---
libavcodec/mjpegdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index ab4d2ba..df62ebc 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1951,7 +1951,7 @@ eoi_parser:
"marker parser used %d bytes (%d bits)\n",
(get_bits_count(&s->gb) + 7) / 8, get_bits_count(&s->gb));
}
- if (s->got_picture) {
+ if (s->got_picture && s->cur_scan) {
av_log(avctx, AV_LOG_WARNING, "EOI missing, emulating\n");
goto eoi_parser;
}
More information about the ffmpeg-cvslog
mailing list