comparison 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
comparison
equal deleted inserted replaced
5721:0c92562f1330 5722:d1707b860013
82 int order; 82 int order;
83 int32_t coefs[MAX_LPC_ORDER]; 83 int32_t coefs[MAX_LPC_ORDER];
84 int shift; 84 int shift;
85 RiceContext rc; 85 RiceContext rc;
86 int32_t samples[FLAC_MAX_BLOCKSIZE]; 86 int32_t samples[FLAC_MAX_BLOCKSIZE];
87 int32_t residual[FLAC_MAX_BLOCKSIZE]; 87 int32_t residual[FLAC_MAX_BLOCKSIZE+1];
88 } FlacSubframe; 88 } FlacSubframe;
89 89
90 typedef struct FlacFrame { 90 typedef struct FlacFrame {
91 FlacSubframe subframes[FLAC_MAX_CH]; 91 FlacSubframe subframes[FLAC_MAX_CH];
92 int blocksize; 92 int blocksize;