Analyzed by Paul B Mahol <onemda@gmail.com>. Fixes OOM in #9081.
Unified · Split
| @@ -351,7 +351,7 @@ static int activate(AVFilterContext *ctx) · 350 unmodified lines | |||
| 351 | if (s->frames_count > 0) { | 351 | if (s->frames_count > 0) { |
| 352 | ret = write_frame(ctx, s, outlink, &again); | 352 | ret = write_frame(ctx, s, outlink, &again); |
| 353 | /* Couldn't generate a frame, so schedule us to perform another step */ | 353 | /* Couldn't generate a frame, so schedule us to perform another step */ |
| 354 | if (again) | 354 | if (again && ff_inoutlink_check_flow(inlink, outlink)) |
| 355 | ff_filter_set_ready(ctx, 100); | 355 | ff_filter_set_ready(ctx, 100); |
| 356 | return ret; | 356 | return ret; |
| 357 | } | 357 | } |