changeset 6668:28af02d712cf libavcodec

Fix regression introduced by r12929. num_coeffs is just one byte. It would make no sense for num_coeffs to be as high as 2^32.
author ramiro
date Tue, 22 Apr 2008 23:24:47 +0000
parents 4a5c7112e35c
children 5ac847f760fc
files mimic.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mimic.c	Tue Apr 22 20:30:50 2008 +0000
+++ b/mimic.c	Tue Apr 22 23:24:47 2008 +0000
@@ -293,7 +293,8 @@
     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;