# HG changeset patch # User michael # Date 1196854566 0 # Node ID 51b4b51fa622a2de8ee3fb88112e0c18ab4c99c9 # Parent ba13cc3e38bb8a1dc456b115fe43d08da6ebaa40 fix decoding of the first frame of gray.mov diff -r ba13cc3e38bb -r 51b4b51fa622 mjpegbdec.c --- 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;