summaryrefslogtreecommitdiff
path: root/libavformat/output-example.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/output-example.c')
-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)