aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-20 12:17:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-20 12:33:20 +0200
commita6df9ce61520ad7583a90a20e82d857b8d4fb133 (patch)
tree0c2f30d522b95dc5a1a7a5f3d9b81a7c16dc577c
parent0c9e78caf4ed2c4e881c22190d7ca145fac276c2 (diff)
downloadffmpeg-a6df9ce61520ad7583a90a20e82d857b8d4fb133.tar.gz
avfilter/buffersrc: Use correct, matching deallocation function
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/buffersrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index c4b7af4262..bf77b88fec 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -242,7 +242,7 @@ do { \
ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \
dummy_ref, (buf->perms & AV_PERM_WRITE) ? 0 : AV_BUFFER_FLAG_READONLY); \
if (!ref_out) { \
- av_freep(&dummy_ref); \
+ av_buffer_unref(&dummy_ref); \
av_frame_unref(frame); \
ret = AVERROR(ENOMEM); \
goto fail; \