correctly handle very large Cinepak frames (courtesy of John Koleszar

<jkoleszar@on2.com>)

Originally committed as revision 4742 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Mike Melanson 2005-12-14 00:19:01 +00:00
parent 86f77a493a
commit 0c3ee78f91

View File

@ -325,7 +325,7 @@ static int cinepak_decode (CinepakContext *s)
frame_flags = s->data[0];
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)
sega_film_data = 1;
if (sega_film_data)