mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
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>
This commit is contained in:
parent
3708a2a909
commit
df6876d691
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user