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

bcoudurier subversion
Sat Apr 26 16:41:29 CEST 2008


Author: bcoudurier
Date: Sat Apr 26 16:41:29 2008
New Revision: 12999

Log:
break if error in header so it can output already decoded frames

Modified:
   trunk/libavcodec/mpegaudiodec.c

Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Sat Apr 26 16:41:29 2008
@@ -2591,10 +2591,8 @@ static int decode_frame_mp3on4(AVCodecCo
 
         header = (AV_RB32(buf) & 0x000fffff) | s->syncword; // patch header
 
-        if (ff_mpa_check_header(header) < 0) { // Bad header, discard block
-            *data_size = 0;
-            return buf_size;
-        }
+        if (ff_mpa_check_header(header) < 0) // Bad header, discard block
+            break;
 
         ff_mpegaudio_decode_header(m, header);
         out_size += mp_decode_frame(m, outptr, buf, fsize);




More information about the ffmpeg-cvslog mailing list