diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-04-15 08:53:03 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-04-15 08:53:03 +0000 |
commit | d3255f6fd88586b43d13a5d07fbdf56f4013b319 (patch) | |
tree | 59c54088b1b6c8611cb5035773084781d906a1b1 /libavcodec | |
parent | fa65e2f63ac4ac7d2a2030191df0842a31bc5501 (diff) | |
download | ffmpeg-d3255f6fd88586b43d13a5d07fbdf56f4013b319.tar.gz |
fix mjpeg.mov
Originally committed as revision 8738 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mjpeg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index fc79772f3f..f81c285e9c 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -1760,7 +1760,7 @@ static int mjpeg_decode_dri(MJpegDecodeContext *s) static int mjpeg_decode_app(MJpegDecodeContext *s) { - int len, id; + int len, id, i; len = get_bits(&s->gb, 16); if (len < 5) @@ -1791,7 +1791,9 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) s->buggy_avid = 1; // if (s->first_picture) // printf("mjpeg: workarounding buggy AVID\n"); - s->bottom_field = get_bits(&s->gb, 8) == 2; + i = get_bits(&s->gb, 8); + if (i==2) s->bottom_field= 1; + else if(i==1) s->bottom_field= 0; #if 0 skip_bits(&s->gb, 8); skip_bits(&s->gb, 32); |