[Ffmpeg-cvslog] r8070 - trunk/libavcodec/apiexample.c

takis subversion
Thu Feb 22 13:56:32 CET 2007


Author: takis
Date: Thu Feb 22 13:56:31 2007
New Revision: 8070

Modified:
   trunk/libavcodec/apiexample.c

Log:
The memsetting of the end of buffer is not needed for audio.


Modified: trunk/libavcodec/apiexample.c
==============================================================================
--- trunk/libavcodec/apiexample.c	(original)
+++ trunk/libavcodec/apiexample.c	Thu Feb 22 13:56:31 2007
@@ -124,9 +124,6 @@
 
     printf("Audio decoding\n");
 
-    /* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
-    memset(inbuf + INBUF_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE);
-
     /* find the mpeg audio decoder */
     codec = avcodec_find_decoder(CODEC_ID_MP2);
     if (!codec) {




More information about the ffmpeg-cvslog mailing list