Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-12-05 14:36:06 +0300
committerMichael Niedermayer <michaelni@gmx.at>2007-12-05 14:36:06 +0300
commitb180d9fe99a2b681d5b2005e31ab13912a752d4b (patch)
treed1c25b344d76e29dbae671eb16039cece20a9b9f /libavcodec/mjpegbdec.c
parentcf653d0811b1468089dbeea745e8019da0fc1e1c (diff)
fix decoding of the first frame of gray.mov
Originally committed as revision 11169 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegbdec.c')
-rw-r--r--libavcodec/mjpegbdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegbdec.c b/libavcodec/mjpegbdec.c
index 7056bd2b28..93f6923cd5 100644
--- a/libavcodec/mjpegbdec.c
+++ b/libavcodec/mjpegbdec.c
@@ -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;