Commit df6876d6 authored by Jun Zhao's avatar Jun Zhao

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: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarJun Zhao <barryjzhao@tencent.com>
parent 3708a2a9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment