[FFmpeg-cvslog] lavu/frame: free frame metadata when unrefing a frame.

Hendrik Leppkes git at videolan.org
Wed Mar 13 20:17:55 CET 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Wed Mar 13 17:51:07 2013 +0100| [febd78e9044fa8210f751189c39f7f9e1ce185e9] | committer: Michael Niedermayer

lavu/frame: free frame metadata when unrefing a frame.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=febd78e9044fa8210f751189c39f7f9e1ce185e9
---

 libavutil/frame.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/frame.c b/libavutil/frame.c
index fe2f40c..58e77c7 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);
 }
 



More information about the ffmpeg-cvslog mailing list