Fixes filtering when cascading multiple decimate filters.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -289,8 +289,8 @@ static int activate(AVFilterContext *ctx) · 288 unmodified lines | |||
| 289 | } | 289 | } |
| 290 | } | 290 | } |
| 291 | 291 | ||
| 292 | if (ff_inlink_queued_frames(ctx->inputs[INPUT_MAIN]) > 0 && | 292 | if (ff_inlink_queued_frames(ctx->inputs[INPUT_MAIN]) > 0 && (!dm->ppsrc || |
| 293 | (dm->ppsrc && ff_inlink_queued_frames(ctx->inputs[INPUT_CLEANSRC]) > 0)) { | 293 | (dm->ppsrc && ff_inlink_queued_frames(ctx->inputs[INPUT_CLEANSRC]) > 0))) { |
| 294 | ff_filter_set_ready(ctx, 100); | 294 | ff_filter_set_ready(ctx, 100); |
| 295 | } else if (ff_outlink_frame_wanted(ctx->outputs[0])) { | 295 | } else if (ff_outlink_frame_wanted(ctx->outputs[0])) { |
| 296 | if (dm->got_frame[INPUT_MAIN] == 0) | 296 | if (dm->got_frame[INPUT_MAIN] == 0) |