diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-09-21 09:10:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-24 12:31:25 +0200 |
commit | 11d1ca4b2c406bee2d22b04268a43b0873096c92 (patch) | |
tree | 4ceb6b2a73ffa7525588029614eb1b437a8c04d3 /libavformat/output-example.c | |
parent | 9eb296572ec801c32d86b349ba1de27704953237 (diff) | |
download | ffmpeg-11d1ca4b2c406bee2d22b04268a43b0873096c92.tar.gz |
Use avcodec_free_frame() to free AVFrames.
Diffstat (limited to 'libavformat/output-example.c')
-rw-r--r-- | libavformat/output-example.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/output-example.c b/libavformat/output-example.c index 27950a162b..1011c2c645 100644 --- a/libavformat/output-example.c +++ b/libavformat/output-example.c @@ -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) |