diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-21 01:27:28 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-21 01:27:28 +0000 |
commit | f5187c7f0488722852f41249b49353c9cc856981 (patch) | |
tree | c7aebc6a5631b4487f010fe62d1dd6ca146db3e2 | |
parent | f121622114f15c243a6daed3f89a9a0a7e5b7087 (diff) | |
download | ffmpeg-f5187c7f0488722852f41249b49353c9cc856981.tar.gz |
flacdec: account for frame and subframe header overhead when calculating
estimate for maximum frame size
Originally committed as revision 18091 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/flacdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 3145d7283e..ec1ace4aee 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -147,8 +147,7 @@ static void allocate_buffers(FLACContext *s) assert(s->max_blocksize); if (s->max_framesize == 0 && s->max_blocksize) { - // FIXME header overhead - s->max_framesize= (s->channels * s->bps * s->max_blocksize + 7)/ 8; + s->max_framesize = 23 + (s->channels * s->bps * s->max_blocksize + 7) / 8; } for (i = 0; i < s->channels; i++) { |