Commit 663efe8a authored by bcoudurier's avatar bcoudurier

correctly compute out_size and samples number

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12985 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dd2dc010
...@@ -2596,11 +2596,10 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, ...@@ -2596,11 +2596,10 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
} }
ff_mpegaudio_decode_header(m, header); ff_mpegaudio_decode_header(m, header);
mp_decode_frame(m, decoded_buf, start, fsize); out_size += mp_decode_frame(m, decoded_buf, start, fsize);
n = MPA_FRAME_SIZE * m->nb_channels;
out_size += n * sizeof(OUT_INT);
if(s->frames > 1) { if(s->frames > 1) {
n = m->avctx->frame_size*m->nb_channels;
/* interleave output data */ /* interleave output data */
bp = out_samples + coff[fr]; bp = out_samples + coff[fr];
if(m->nb_channels == 1) { if(m->nb_channels == 1) {
......
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