diff options
-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++) { |