[FFmpeg-cvslog] buffersrc: Use the correct deallocation function

Federico Tomassetti git at videolan.org
Thu Apr 23 21:17:30 CEST 2015


ffmpeg | branch: master | Federico Tomassetti <f.tomassetti at gmail.com> | Mon Apr 20 20:12:05 2015 +0100| [8eb57dc9d5ea13c12573e0759da0f7e79825af98] | committer: Luca Barbato

buffersrc: Use the correct deallocation function

This correction was suggested to me by Michael Niedermayer

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

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

diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index f768063..8f7032f 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -195,7 +195,7 @@ do {                                                                    \
     ref_out = av_buffer_create(data, data_size, compat_unref_buffer,    \
                                dummy_ref, 0);                           \
     if (!ref_out) {                                                     \
-        av_freep(&dummy_ref);                                           \
+        av_buffer_unref(&dummy_ref);                                    \
         av_frame_unref(frame);                                          \
         ret = AVERROR(ENOMEM);                                          \
         goto fail;                                                      \



More information about the ffmpeg-cvslog mailing list