diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-08-19 12:54:27 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-08-20 10:05:03 +0800 |
commit | df6876d69172140eb315a914a924abece2c6481a (patch) | |
tree | 1c582945960e032de0ee5a26bfece14b4b048c51 | |
parent | 3708a2a90991b76766465fb1df6e7ea26d88ca4c (diff) |
lavfi/af_adeclick: fix double free after ff_filter_frame fail
ff_filter_frame fail will free the frame, so we just returen after this
function fail.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r-- | 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 50eef74921..2c42f97960 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; |