Use avcodec_free_frame() to free AVFrames.

This commit is contained in:
Anton Khirnov 2012-09-21 09:10:23 +02:00
parent 9eb296572e
commit 11d1ca4b2c
5 changed files with 10 additions and 9 deletions

View file

@ -165,6 +165,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
fprintf(stderr, "Error while writing audio frame\n");
exit(1);
}
avcodec_free_frame(&frame);
}
static void close_audio(AVFormatContext *oc, AVStream *st)