[FFmpeg-cvslog] buffersink/uninit: use av_frame_free() not unref

Michael Niedermayer git at videolan.org
Sat Mar 23 23:54:47 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Mar 23 23:49:33 2013 +0100| [62f56fd7eae03b70e106a66bc8e2dac178d8738d] | committer: Michael Niedermayer

buffersink/uninit: use av_frame_free() not unref

Fixes memleak

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

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

 libavfilter/buffersink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index bcb6525..0f500d0 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -63,7 +63,7 @@ static av_cold void uninit(AVFilterContext *ctx)
     if (sink->fifo) {
         while (av_fifo_size(sink->fifo) >= sizeof(AVFilterBufferRef *)) {
             av_fifo_generic_read(sink->fifo, &frame, sizeof(frame), NULL);
-            av_frame_unref(frame);
+            av_frame_free(&frame);
         }
         av_fifo_free(sink->fifo);
         sink->fifo = NULL;



More information about the ffmpeg-cvslog mailing list