Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2007-09-26 03:34:48 +0400
committerLoren Merritt <lorenm@u.washington.edu>2007-09-26 03:34:48 +0400
commit0d2caa37c53bb8b479840572cb4dede2e2b30e8e (patch)
tree58479d5b3c2dc9783b58c4346cb836864d467f76 /libavcodec/flacenc.c
parentbd49d4fd4962d28447cb6edfaba8a218cf60b2da (diff)
oops, potential overflow on really large blocks
Originally committed as revision 10587 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r--libavcodec/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 8dd55eabe0..e2357affeb 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -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 {