changeset 2963:c8fa6a50fca5 libavcodec

correctly handle very large Cinepak frames (courtesy of John Koleszar <jkoleszar@on2.com>)
author melanson
date Wed, 14 Dec 2005 00:19:01 +0000
parents fde28cb7e3d5
children 8f732838179d
files cinepak.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cinepak.c	Mon Dec 12 01:56:46 2005 +0000
+++ b/cinepak.c	Wed Dec 14 00:19:01 2005 +0000
@@ -325,7 +325,7 @@
 
     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)