Commit 10cd12bf authored by jbr's avatar jbr

flacdec: account for frame and subframe header overhead when calculating

estimate for maximum frame size


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18091 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 77fd4bc9
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment