Not providing any samples makes no sense at all. And if no samples were provided for one of the HRIR streams, one would either run into an av_assert1 in ff_inlink_consume_samples() or into a segfault in take_samples() in avfilter.c.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -631,8 +631,14 @@ static int activate(AVFilterContext *ctx) · 630 unmodified lines | |||
| 631 | if ((ret = check_ir(ctx->inputs[i], i)) < 0) | 631 | if ((ret = check_ir(ctx->inputs[i], i)) < 0) |
| 632 | return ret; | 632 | return ret; |
| 633 | 633 | ||
| 634 | if (ff_outlink_get_status(ctx->inputs[i]) == AVERROR_EOF) | 634 | if (ff_outlink_get_status(ctx->inputs[i]) == AVERROR_EOF) { |
| 635 | if (!ff_inlink_queued_samples(ctx->inputs[i])) { | ||
| 636 | av_log(ctx, AV_LOG_ERROR, "No samples provided for " | ||
| 637 | "HRIR stream %d.\n", i - 1); | ||
| 638 | return AVERROR_INVALIDDATA; | ||
| 639 | } | ||
| 635 | s->in[i].eof = 1; | 640 | s->in[i].eof = 1; |
| 641 | } | ||
| 636 | } | 642 | } |
| 637 | 643 | ||
| 638 | for (i = 1; i < s->nb_inputs; i++) { | 644 | for (i = 1; i < s->nb_inputs; i++) { |