History

lavfi/vf_fps: check flow before sending more frames

Analyzed by Paul B Mahol <onemda@gmail.com>. Fixes OOM in #9081.

Nicolas George committed 4 years ago

Commit 01440e21 parent 531d09f1 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_fps.c+1−1
@@ -351,7 +351,7 @@ static int activate(AVFilterContext *ctx) · 350 unmodified lines
351351 if (s->frames_count > 0) {
352352 ret = write_frame(ctx, s, outlink, &again);
353353 /* Couldn't generate a frame, so schedule us to perform another step */
354− if (again)
354+ if (again && ff_inoutlink_check_flow(inlink, outlink))
355355 ff_filter_set_ready(ctx, 100);
356356 return ret;
357357 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t