Mercurial > libavcodec.hg
diff flacenc.c @ 5722:d1707b860013 libavcodec
oops, potential overflow on really large blocks
author | lorenm |
---|---|
date | Tue, 25 Sep 2007 23:34:48 +0000 |
parents | b3695c272156 |
children | 96d1b6c30aad |
line wrap: on
line diff
--- a/flacenc.c Tue Sep 25 23:31:13 2007 +0000 +++ b/flacenc.c Tue Sep 25 23:34:48 2007 +0000 @@ -84,7 +84,7 @@ 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 {