This filter uses ff_set_common_formats_from_list().
Unified · Split
| @@ -367,10 +367,6 @@ static int config_output(AVFilterLink *outlink) · 366 unmodified lines | |||
| 367 | av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n"); | 367 | av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n"); |
| 368 | return AVERROR(EINVAL); | 368 | return AVERROR(EINVAL); |
| 369 | } | 369 | } |
| 370 | if (ctx->inputs[0]->format != ctx->inputs[1]->format) { | ||
| 371 | av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n"); | ||
| 372 | return AVERROR(EINVAL); | ||
| 373 | } | ||
| 374 | } | 370 | } |
| 375 | 371 | ||
| 376 | outlink->w = mainlink->w; | 372 | outlink->w = mainlink->w; |