# HG changeset patch # User takis # Date 1172148991 0 # Node ID f58de1bdb67509c6181d275d363aa3d848af0021 # Parent de57979c3cd2052dc3860a775d85d915ad3969ca The memsetting of the end of buffer is not needed for audio. diff -r de57979c3cd2 -r f58de1bdb675 apiexample.c --- 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) {