This filter uses ff_set_common_formats_from_list().
Unified · Split
| @@ -295,10 +295,6 @@ static int config_output(AVFilterLink *outlink) · 294 unmodified lines | |||
| 295 | FFFrameSyncIn *in; | 295 | FFFrameSyncIn *in; |
| 296 | int ret; | 296 | int ret; |
| 297 | 297 | ||
| 298 | if (base->format != alt->format) { | ||
| 299 | av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n"); | ||
| 300 | return AVERROR(EINVAL); | ||
| 301 | } | ||
| 302 | if (base->w != alt->w || base->h != alt->h) { | 298 | if (base->w != alt->w || base->h != alt->h) { |
| 303 | av_log(ctx, AV_LOG_ERROR, "First input link %s parameters " | 299 | av_log(ctx, AV_LOG_ERROR, "First input link %s parameters " |
| 304 | "(size %dx%d) do not match the corresponding " | 300 | "(size %dx%d) do not match the corresponding " |