From 0c3ee78f91486919acee57e9f6220dd4e2b611c9 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Wed, 14 Dec 2005 00:19:01 +0000 Subject: [PATCH] correctly handle very large Cinepak frames (courtesy of John Koleszar ) Originally committed as revision 4742 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cinepak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c index d1e1f0ec16..6da011f2a3 100644 --- a/libavcodec/cinepak.c +++ b/libavcodec/cinepak.c @@ -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)