Commit 01440e25 authored by Nicolas George's avatar Nicolas George

lavfi/vf_fps: check flow before sending more frames

Analyzed by Paul B Mahol <onemda@gmail.com>.

Fixes OOM in #9081.
parent 531d09fb
......@@ -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;
}
......
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