[Ffmpeg-cvslog] r6836 - trunk/libavcodec/mpegaudiodec.c

michael subversion
Mon Oct 30 02:29:56 CET 2006


Author: michael
Date: Mon Oct 30 02:29:56 2006
New Revision: 6836

Modified:
   trunk/libavcodec/mpegaudiodec.c

Log:
avoid random noise on damaged frames


Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Mon Oct 30 02:29:56 2006
@@ -2269,7 +2269,8 @@
 //av_log(NULL, AV_LOG_ERROR, "backstep:%d, lastbuf:%d\n", main_data_begin, s->last_buf_size);
     if(main_data_begin > s->last_buf_size){
         av_log(NULL, AV_LOG_ERROR, "backstep:%d, lastbuf:%d\n", main_data_begin, s->last_buf_size);
-        s->last_buf_size= main_data_begin;
+//        s->last_buf_size= main_data_begin;
+        return -1;
       }
 
     memcpy(s->last_buf + s->last_buf_size, ptr, EXTRABYTES);




More information about the ffmpeg-cvslog mailing list