From: Panagiotis Issaris Date: Thu, 22 Feb 2007 12:56:31 +0000 (+0000) Subject: The memsetting of the end of buffer is not needed for audio. X-Git-Tag: v0.5~9983 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b24daebf22762a6a68a750325c7b6a3e01d2b20e;p=platform%2Fupstream%2Flibav.git The memsetting of the end of buffer is not needed for audio. Originally committed as revision 8070 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 88b8ea1..151637b 100644 --- a/libavcodec/apiexample.c +++ b/libavcodec/apiexample.c @@ -124,9 +124,6 @@ void audio_decode_example(const char *outfilename, const char *filename) 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) {