summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-09-21 09:10:23 +0200
committerAnton Khirnov <anton@khirnov.net>2012-09-24 12:31:25 +0200
commit11d1ca4b2c406bee2d22b04268a43b0873096c92 (patch)
tree4ceb6b2a73ffa7525588029614eb1b437a8c04d3 /libavformat
parent9eb296572ec801c32d86b349ba1de27704953237 (diff)
Use avcodec_free_frame() to free AVFrames.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/output-example.c1
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)