mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
lavfi/vf_fps: check flow before sending more frames
Analyzed by Paul B Mahol <onemda@gmail.com>. Fixes OOM in #9081.
This commit is contained in:
parent
531d09fb2d
commit
01440e2588
@ -351,7 +351,7 @@ static int activate(AVFilterContext *ctx)
|
||||
if (s->frames_count > 0) {
|
||||
ret = write_frame(ctx, s, outlink, &again);
|
||||
/* Couldn't generate a frame, so schedule us to perform another step */
|
||||
if (again)
|
||||
if (again && ff_inoutlink_check_flow(inlink, outlink))
|
||||
ff_filter_set_ready(ctx, 100);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user