aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-02-22 12:56:31 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-02-22 12:56:31 +0000
commitb24daebf22762a6a68a750325c7b6a3e01d2b20e (patch)
tree9d7097a9d343e1244becc36b8d61c6587593e09c
parentc60202dffe995aef7dae4419ca6e2895e976767e (diff)
downloadffmpeg-b24daebf22762a6a68a750325c7b6a3e01d2b20e.tar.gz
The memsetting of the end of buffer is not needed for audio.
Originally committed as revision 8070 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/apiexample.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c
index 88b8ea1f64..151637bd21 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) {