[Ffmpeg-cvslog] r8738 - trunk/libavcodec/mjpeg.c
michael
subversion
Sun Apr 15 10:53:03 CEST 2007
Author: michael
Date: Sun Apr 15 10:53:03 2007
New Revision: 8738
Modified:
trunk/libavcodec/mjpeg.c
Log:
fix mjpeg.mov
Modified: trunk/libavcodec/mjpeg.c
==============================================================================
--- trunk/libavcodec/mjpeg.c (original)
+++ trunk/libavcodec/mjpeg.c Sun Apr 15 10:53:03 2007
@@ -1760,7 +1760,7 @@ static int mjpeg_decode_dri(MJpegDecodeC
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(MJpegDecodeC
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);
More information about the ffmpeg-cvslog
mailing list