diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2007-09-25 23:34:48 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2007-09-25 23:34:48 +0000 |
commit | 0d2caa37c53bb8b479840572cb4dede2e2b30e8e (patch) | |
tree | 58479d5b3c2dc9783b58c4346cb836864d467f76 /libavcodec/flacenc.c | |
parent | bd49d4fd4962d28447cb6edfaba8a218cf60b2da (diff) | |
download | ffmpeg-streaming-0d2caa37c53bb8b479840572cb4dede2e2b30e8e.zip ffmpeg-streaming-0d2caa37c53bb8b479840572cb4dede2e2b30e8e.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 8dd55ea..e2357af 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 { |