Mercurial > libavcodec.hg
diff apiexample.c @ 4564:f58de1bdb675 libavcodec
The memsetting of the end of buffer is not needed for audio.
author | takis |
---|---|
date | Thu, 22 Feb 2007 12:56:31 +0000 |
parents | de57979c3cd2 |
children | 4dbe6578f811 |
line wrap: on
line diff
--- a/apiexample.c Thu Feb 22 02:12:54 2007 +0000 +++ b/apiexample.c Thu Feb 22 12:56:31 2007 +0000 @@ -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) {