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

michael subversion
Mon May 28 00:34:49 CEST 2007


Author: michael
Date: Mon May 28 00:34:49 2007
New Revision: 9144

Log:
make decoder decode the first frame properly if theres more than just one
frame input


Modified:
   trunk/libavcodec/mpegaudiodec.c

Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Mon May 28 00:34:49 2007
@@ -2417,6 +2417,7 @@ retry:
         return -1;
     }else if(s->frame_size < buf_size){
         av_log(avctx, AV_LOG_ERROR, "incorrect frame size\n");
+        buf_size= s->frame_size;
     }
 
     out_size = mp_decode_frame(s, out_samples, buf, buf_size);




More information about the ffmpeg-cvslog mailing list