diff options
author | Federico Tomassetti <f.tomassetti@gmail.com> | 2015-04-20 20:12:05 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-04-22 12:26:53 +0200 |
commit | 8eb57dc9d5ea13c12573e0759da0f7e79825af98 (patch) | |
tree | d3c2691a859c8b47e2391c02e4e96cd14a7a50a6 | |
parent | 9b2c57bef5e2f3f61a5fd708ba7d5351f5b3f386 (diff) | |
download | ffmpeg-8eb57dc9d5ea13c12573e0759da0f7e79825af98.tar.gz |
buffersrc: Use the correct deallocation function
This correction was suggested to me by Michael Niedermayer
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavfilter/buffersrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index f768063309..8f7032f993 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; \ |