git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf653d0
)
fix decoding of the first frame of gray.mov
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 5 Dec 2007 11:36:06 +0000
(11:36 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 5 Dec 2007 11:36:06 +0000
(11:36 +0000)
Originally committed as revision 11169 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpegbdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpegbdec.c
b/libavcodec/mjpegbdec.c
index
7056bd2
..
93f6923
100644
(file)
--- 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;