[FFmpeg-cvslog] mjpeg: interlaced buggy avid fix

Michael Niedermayer git at videolan.org
Thu Sep 15 04:33:55 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 15 04:12:32 2011 +0200| [d55b06b8e725b9ef362137486221fa1e90c012c0] | committer: Michael Niedermayer

mjpeg: interlaced buggy avid fix
Fix Ticket362

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d55b06b8e725b9ef362137486221fa1e90c012c0
---

 libavcodec/mjpegdec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 66114f8..4a5b046 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1123,8 +1123,7 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
 //        if (s->first_picture)
 //            printf("mjpeg: workarounding buggy AVID\n");
         i = get_bits(&s->gb, 8); len--;
-        if     (i==2) s->bottom_field= 1;
-        else if(i==1) s->bottom_field= 0;
+        av_log(s->avctx, AV_LOG_DEBUG, "polarity %d\n", i);
 #if 0
         skip_bits(&s->gb, 8);
         skip_bits(&s->gb, 32);



More information about the ffmpeg-cvslog mailing list