]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/apiexample.c
Add some #includes to allow compilation without HAVE_AV_CONFIG_H.
[ffmpeg] / libavcodec / apiexample.c
index 2ddaeb1d52a57bff2dbef7a90acfea1a1b1788c1..151637bd21d7cd43d4125779ed80fd800befcec1 100644 (file)
@@ -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) {
@@ -228,8 +225,6 @@ void video_encode_example(const char *filename)
         exit(1);
     }
 
-    /* the codec gives us the frame size, in samples */
-
     f = fopen(filename, "wb");
     if (!f) {
         fprintf(stderr, "could not open %s\n", filename);