Commit 4e0738ce authored by Michael Niedermayer's avatar Michael Niedermayer

mpegaudiodec/mp3on4: fix buffer size.

The larger (and really ugly) size is not needed anymore.

Found-by: Justin Ruggles
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7b5fdd04
......@@ -1934,7 +1934,7 @@ static int decode_frame_mp3on4(AVCodecContext *avctx, void *data,
int fr, ch, ret;
/* get output buffer */
s->frame->nb_samples = s->frames * MPA_FRAME_SIZE;
s->frame->nb_samples = MPA_FRAME_SIZE;
if ((ret = ff_get_buffer(avctx, s->frame)) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret;
......
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