[SCM] libav/experimental: fix decoding of the first frame of gray.mov
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:10:09 UTC 2013
The following commit has been merged in the experimental branch:
commit b180d9fe99a2b681d5b2005e31ab13912a752d4b
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Wed Dec 5 11:36:06 2007 +0000
fix decoding of the first frame of gray.mov
Originally committed as revision 11169 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/mjpegbdec.c b/libavcodec/mjpegbdec.c
index 7056bd2..93f6923 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list