[FFmpeg-cvslog] r10587 - trunk/libavcodec/flacenc.c

lorenm subversion
Wed Sep 26 01:34:48 CEST 2007


Author: lorenm
Date: Wed Sep 26 01:34:48 2007
New Revision: 10587

Log:
oops, potential overflow on really large blocks


Modified:
   trunk/libavcodec/flacenc.c

Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c	(original)
+++ trunk/libavcodec/flacenc.c	Wed Sep 26 01:34:48 2007
@@ -84,7 +84,7 @@ typedef struct FlacSubframe {
     int shift;
     RiceContext rc;
     int32_t samples[FLAC_MAX_BLOCKSIZE];
-    int32_t residual[FLAC_MAX_BLOCKSIZE];
+    int32_t residual[FLAC_MAX_BLOCKSIZE+1];
 } FlacSubframe;
 
 typedef struct FlacFrame {




More information about the ffmpeg-cvslog mailing list