aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-03-13 17:51:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-13 20:16:49 +0100
commitfebd78e9044fa8210f751189c39f7f9e1ce185e9 (patch)
treecdd6f61c03424b40a333803369583cdecf1be9b5
parent84bf1cbef9111341e2030aa91bc8279d08e8b345 (diff)
downloadffmpeg-febd78e9044fa8210f751189c39f7f9e1ce185e9.tar.gz
lavu/frame: free frame metadata when unrefing a frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index fe2f40c917..58e77c73f4 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -310,6 +310,7 @@ void av_frame_unref(AVFrame *frame)
for (i = 0; i < frame->nb_extended_buf; i++)
av_buffer_unref(&frame->extended_buf[i]);
av_freep(&frame->extended_buf);
+ av_dict_free(&frame->metadata);
get_frame_defaults(frame);
}