Commit 217fc328 authored by melanson's avatar melanson

correctly handle very large Cinepak frames (courtesy of John Koleszar

<jkoleszar@on2.com>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4742 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fdd0bb56
...@@ -325,7 +325,7 @@ static int cinepak_decode (CinepakContext *s) ...@@ -325,7 +325,7 @@ static int cinepak_decode (CinepakContext *s)
frame_flags = s->data[0]; frame_flags = s->data[0];
num_strips = BE_16 (&s->data[8]); num_strips = BE_16 (&s->data[8]);
encoded_buf_size = BE_16 (&s->data[2]); encoded_buf_size = ((s->data[1] << 16) | BE_16 (&s->data[2]));
if (encoded_buf_size != s->size) if (encoded_buf_size != s->size)
sega_film_data = 1; sega_film_data = 1;
if (sega_film_data) if (sega_film_data)
......
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