This filter uses ff_set_common_formats_from_list().
Unified · Split
| @@ -496,10 +496,6 @@ static int config_input_ref(AVFilterLink *inlink) · 495 unmodified lines | ||
| 496 | 496 | av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n"); |
| 497 | 497 | return AVERROR(EINVAL); |
| 498 | 498 | } |
| 499 | − if (ctx->inputs[0]->format != ctx->inputs[1]->format) { | |
| 500 | − av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n"); | |
| 501 | − return AVERROR(EINVAL); | |
| 502 | − } | |
| 503 | 499 | |
| 504 | 500 | s->desc = av_pix_fmt_desc_get(inlink->format); |
| 505 | 501 | s->width = ctx->inputs[0]->w; |