mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
The memsetting of the end of buffer is not needed for audio.
Originally committed as revision 8070 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c60202dffe
commit
b24daebf22
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user