Mercurial > libavcodec.hg
changeset 4854:9f1c90ce5d9d libavcodec
fix mjpeg.mov
author | michael |
---|---|
date | Sun, 15 Apr 2007 08:53:03 +0000 |
parents | df386603730b |
children | 40f3a7f2b1fd |
files | mjpeg.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpeg.c Sat Apr 14 22:58:23 2007 +0000 +++ b/mjpeg.c Sun Apr 15 08:53:03 2007 +0000 @@ -1760,7 +1760,7 @@ 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 @@ 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);