[FFmpeg-cvslog] avfilter/buffersrc: Use correct, matching deallocation function
Michael Niedermayer
git at videolan.org
Mon Apr 20 12:45:50 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 20 12:17:05 2015 +0200| [a6df9ce61520ad7583a90a20e82d857b8d4fb133] | committer: Michael Niedermayer
avfilter/buffersrc: Use correct, matching deallocation function
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6df9ce61520ad7583a90a20e82d857b8d4fb133
---
libavfilter/buffersrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index c4b7af4..bf77b88 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; \
More information about the ffmpeg-cvslog
mailing list