[FFmpeg-devel] [PATCH V1 1/5] lavfi/af_adeclick: fix double free after ff_filter_frame fail
Jun Zhao
mypopydev at gmail.com
Mon Aug 19 16:01:03 EEST 2019
From: Jun Zhao <barryjzhao at tencent.com>
ff_filter_frame fail will free the frame, so we just returen after this
function fail.
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
libavfilter/af_adeclick.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/af_adeclick.c b/libavfilter/af_adeclick.c
index 50eef74..2c42f97 100644
--- a/libavfilter/af_adeclick.c
+++ b/libavfilter/af_adeclick.c
@@ -592,7 +592,7 @@ static int filter_frame(AVFilterLink *inlink)
ret = ff_filter_frame(outlink, out);
if (ret < 0)
- goto fail;
+ return ret;
if (s->samples_left > 0) {
s->samples_left -= s->hop_size;
--
1.7.1
More information about the ffmpeg-devel
mailing list