diff options
author | Federico Tomassetti <f.tomassetti@gmail.com> | 2015-04-20 22:12:05 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-04-22 13:26:53 +0300 |
commit | 8eb57dc9d5ea13c12573e0759da0f7e79825af98 (patch) | |
tree | d3c2691a859c8b47e2391c02e4e96cd14a7a50a6 /libavfilter | |
parent | 9b2c57bef5e2f3f61a5fd708ba7d5351f5b3f386 (diff) |
buffersrc: Use the correct deallocation function
This correction was suggested to me by Michael Niedermayer
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavfilter')
-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; \ |