[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mpegaudiodec.c,1.57,1.58

Michael Niedermayer CVS michael
Thu May 5 22:05:44 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv26102

Modified Files:
	mpegaudiodec.c 
Log Message:
check for error


Index: mpegaudiodec.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpegaudiodec.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- mpegaudiodec.c	2 Mar 2005 20:46:06 -0000	1.57
+++ mpegaudiodec.c	5 May 2005 20:05:41 -0000	1.58
@@ -2628,7 +2628,10 @@
             }
 	    s->inbuf_ptr = s->inbuf;
 	    s->frame_size = 0;
-	    *data_size = out_size;
+            if(out_size>=0)
+	        *data_size = out_size;
+            else
+                av_log(avctx, AV_LOG_DEBUG, "Error while decoding mpeg audio frame\n"); //FIXME return -1 / but also return the number of bytes consumed
 	    break;
 	}
     }





More information about the ffmpeg-cvslog mailing list