Commit 4e547efd authored by al3x's avatar al3x

fixed 10l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1124 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f2a579c7
...@@ -1068,7 +1068,8 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) ...@@ -1068,7 +1068,8 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
if (len < 5) if (len < 5)
return -1; return -1;
id = be2me_32((get_bits(&s->gb, 16) << 16) | get_bits(&s->gb, 16)); id = (get_bits(&s->gb, 16) << 16) | get_bits(&s->gb, 16);
id = be2me_32(id);
len -= 6; len -= 6;
/* buggy AVID, it puts EOI only at every 10th frame */ /* buggy AVID, it puts EOI only at every 10th frame */
...@@ -1124,7 +1125,8 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) ...@@ -1124,7 +1125,8 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
/* Apple MJPEG-A */ /* Apple MJPEG-A */
if ((s->start_code == APP1) && (len > (0x28 - 8))) if ((s->start_code == APP1) && (len > (0x28 - 8)))
{ {
id = be2me_32((get_bits(&s->gb, 16) << 16) | get_bits(&s->gb, 16)); id = (get_bits(&s->gb, 16) << 16) | get_bits(&s->gb, 16);
id = be2me_32(id);
len -= 4; len -= 4;
if (id == ff_get_fourcc("mjpg")) /* Apple MJPEG-A */ if (id == ff_get_fourcc("mjpg")) /* Apple MJPEG-A */
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment