[FFmpeg-cvslog] r11169 - trunk/libavcodec/mjpegbdec.c
michael
subversion
Wed Dec 5 12:36:06 CET 2007
Author: michael
Date: Wed Dec 5 12:36:06 2007
New Revision: 11169
Log:
fix decoding of the first frame of gray.mov
Modified:
trunk/libavcodec/mjpegbdec.c
Modified: trunk/libavcodec/mjpegbdec.c
==============================================================================
--- trunk/libavcodec/mjpegbdec.c (original)
+++ trunk/libavcodec/mjpegbdec.c Wed Dec 5 12:36:06 2007
@@ -109,7 +109,7 @@ read_header:
if (s->interlaced) {
s->bottom_field ^= 1;
/* if not bottom field, do not output image yet */
- if (s->bottom_field && second_field_offs)
+ if (s->bottom_field != s->interlace_polarity && second_field_offs)
{
buf_ptr = buf + second_field_offs;
second_field_offs = 0;
More information about the ffmpeg-cvslog
mailing list