Also set state to ready if there is any inlink with queued frame.
FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
for (i = 0; i < ctx->nb_inputs; i++) {
- if (!ff_outlink_get_status(ctx->inputs[i])) {
- if (!ff_inlink_queued_frames(ctx->inputs[i]))
- break;
- nb_inputs_with_frames++;
- }
+ if (!ff_inlink_queued_frames(ctx->inputs[i]))
+ continue;
+ nb_inputs_with_frames++;
}
if (nb_inputs_with_frames > 0) {
}
}
+ if (i) {
+ ff_filter_set_ready(ctx, 100);
+ return 0;
+ }
+
return FFERROR_NOT_READY;
}