[FFmpeg-devel] [PATCH 06/10] lavc/flacenc: increase buffer sizes in FlacSubFrame struct

James Darnley james.darnley at gmail.com
Wed Feb 12 00:11:18 CET 2014


New functions read and write 12 samples per iteration.  Therefore they
may need up to 11 samples more in the buffer.
---
 libavcodec/flacenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 1fc8c4c..88f57e6 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -80,7 +80,7 @@ typedef struct FlacSubframe {
     int shift;
     RiceContext rc;
     int32_t samples[FLAC_MAX_BLOCKSIZE];
-    int32_t residual[FLAC_MAX_BLOCKSIZE+1];
+    int32_t residual[FLAC_MAX_BLOCKSIZE+11];
 } FlacSubframe;
 
 typedef struct FlacFrame {
-- 
1.7.9



More information about the ffmpeg-devel mailing list