diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-04 05:29:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-04 06:20:19 +0100 |
commit | 4e0738cec9df382ed1edee26effe0b40ea22a3cd (patch) | |
tree | 6fab7d6400359a45e6a91af32ca9a0d638055915 /libavcodec | |
parent | 7b5fdd04de66710a62fa7a763ddd3c0d2f8676ea (diff) | |
download | ffmpeg-streaming-4e0738cec9df382ed1edee26effe0b40ea22a3cd.zip ffmpeg-streaming-4e0738cec9df382ed1edee26effe0b40ea22a3cd.tar.gz |
mpegaudiodec/mp3on4: fix buffer size.
The larger (and really ugly) size is not needed anymore.
Found-by: Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index e4073ee..beef38d 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -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; |