[FFmpeg-devel] [PATCH] avfilter/formats: remove unnecessary unreference

quinkblack at foxmail.com quinkblack at foxmail.com
Mon Sep 30 11:00:34 EEST 2019


From: Zhao Zhili <zhilizhao at tencent.com>

---
 libavfilter/formats.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavfilter/formats.c b/libavfilter/formats.c
index 31ee445c49..15c3adf80b 100644
--- a/libavfilter/formats.c
+++ b/libavfilter/formats.c
@@ -317,7 +317,6 @@ do {                                                        \
     void *oldf = *f;                                        \
                                                             \
     if (!(*f) && !(*f = av_mallocz(sizeof(**f)))) {         \
-        unref_fn(f);                                        \
         return AVERROR(ENOMEM);                             \
     }                                                       \
                                                             \
-- 
2.22.0





More information about the ffmpeg-devel mailing list