changeset 5985:51b4b51fa622 libavcodec

fix decoding of the first frame of gray.mov
author michael
date Wed, 05 Dec 2007 11:36:06 +0000
parents ba13cc3e38bb
children da1e68b0e975
files mjpegbdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mjpegbdec.c	Wed Dec 05 05:24:54 2007 +0000
+++ b/mjpegbdec.c	Wed Dec 05 11:36:06 2007 +0000
@@ -109,7 +109,7 @@
     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;