This filter uses ff_set_common_formats_from_list().
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -821,10 +821,6 @@ static int config_output(AVFilterLink *outlink) · 820 unmodified lines | ||
| 821 | 821 | if (!s->tblend) { |
| 822 | 822 | AVFilterLink *bottomlink = ctx->inputs[BOTTOM]; |
| 823 | 823 | |
| 824 | − if (toplink->format != bottomlink->format) { | |
| 825 | − av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n"); | |
| 826 | − return AVERROR(EINVAL); | |
| 827 | − } | |
| 828 | 824 | if (toplink->w != bottomlink->w || toplink->h != bottomlink->h) { |
| 829 | 825 | av_log(ctx, AV_LOG_ERROR, "First input link %s parameters " |
| 830 | 826 | "(size %dx%d) do not match the corresponding " |