[FFmpeg-cvslog] r12985 - trunk/libavcodec/mpegaudiodec.c

bcoudurier subversion
Sat Apr 26 15:03:41 CEST 2008


Author: bcoudurier
Date: Sat Apr 26 15:03:41 2008
New Revision: 12985

Log:
correctly compute out_size and samples number

Modified:
   trunk/libavcodec/mpegaudiodec.c

Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Sat Apr 26 15:03:41 2008
@@ -2596,11 +2596,10 @@ static int decode_frame_mp3on4(AVCodecCo
         }
 
         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) {
+            n = m->avctx->frame_size*m->nb_channels;
             /* interleave output data */
             bp = out_samples + coff[fr];
             if(m->nb_channels == 1) {




More information about the ffmpeg-cvslog mailing list