[FFmpeg-cvslog] r12931 - trunk/libavcodec/mimic.c

ramiro subversion
Wed Apr 23 01:24:47 CEST 2008


Author: ramiro
Date: Wed Apr 23 01:24:47 2008
New Revision: 12931

Log:
Fix regression introduced by r12929.
num_coeffs is just one byte (or maybe two?).
It would make no sense for num_coeffs to be as high as 2^32.

Modified:
   trunk/libavcodec/mimic.c

Modified: trunk/libavcodec/mimic.c
==============================================================================
--- trunk/libavcodec/mimic.c	(original)
+++ trunk/libavcodec/mimic.c	Wed Apr 23 01:24:47 2008
@@ -293,7 +293,8 @@ static int mimic_decode_frame(AVCodecCon
     height     = bytestream_get_le16(&buf);
     buf       += 4; /* some constant */
     is_pframe  = bytestream_get_le32(&buf);
-    num_coeffs = bytestream_get_le32(&buf);
+    num_coeffs = bytestream_get_byte(&buf);
+    buf       += 3; /* some constant */
 
     if(!ctx->avctx) {
         int i;




More information about the ffmpeg-cvslog mailing list