This filter uses ff_set_common_formats_from_list().
Unified · Split
| @@ -968,10 +968,6 @@ static int config_output(AVFilterLink *outlink) · 967 unmodified lines | |||
| 968 | if (s->ref) { | 968 | if (s->ref) { |
| 969 | ref = ctx->inputs[1]; | 969 | ref = ctx->inputs[1]; |
| 970 | 970 | ||
| 971 | if (src->format != ref->format) { | ||
| 972 | av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n"); | ||
| 973 | return AVERROR(EINVAL); | ||
| 974 | } | ||
| 975 | if (src->w != ref->w || | 971 | if (src->w != ref->w || |
| 976 | src->h != ref->h) { | 972 | src->h != ref->h) { |
| 977 | av_log(ctx, AV_LOG_ERROR, "First input link %s parameters " | 973 | av_log(ctx, AV_LOG_ERROR, "First input link %s parameters " |