Mercurial > libavcodec.hg
changeset 5722:d1707b860013 libavcodec
oops, potential overflow on really large blocks
author | lorenm |
---|---|
date | Tue, 25 Sep 2007 23:34:48 +0000 |
parents | 0c92562f1330 |
children | 49a5d44423ef |
files | flacenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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 {