These filters use ff_set_common_formats_from_list().
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -162,10 +162,6 @@ static int config_input_impulse(AVFilterLink *inlink) · 161 unmodified lines | ||
| 162 | 162 | av_log(ctx, AV_LOG_ERROR, "Width and height of input videos must be same.\n"); |
| 163 | 163 | return AVERROR(EINVAL); |
| 164 | 164 | } |
| 165 | − if (ctx->inputs[0]->format != ctx->inputs[1]->format) { | |
| 166 | − av_log(ctx, AV_LOG_ERROR, "Inputs must be of same pixel format.\n"); | |
| 167 | − return AVERROR(EINVAL); | |
| 168 | − } | |
| 169 | 165 | |
| 170 | 166 | return 0; |
| 171 | 167 | } |