The check is for color space, not range.
Unified · Split
| @@ -977,7 +977,7 @@ int ff_formats_check_color_spaces(void *log, const AVFilterFormats *fmts) · 976 unmodified lines | |||
| 977 | { | 977 | { |
| 978 | for (int i = 0; fmts && i < fmts->nb_formats; i++) { | 978 | for (int i = 0; fmts && i < fmts->nb_formats; i++) { |
| 979 | if (fmts->formats[i] == AVCOL_SPC_RESERVED) { | 979 | if (fmts->formats[i] == AVCOL_SPC_RESERVED) { |
| 980 | av_log(log, AV_LOG_ERROR, "Invalid color range\n"); | 980 | av_log(log, AV_LOG_ERROR, "Invalid color space\n"); |
| 981 | return AVERROR(EINVAL); | 981 | return AVERROR(EINVAL); |
| 982 | } | 982 | } |
| 983 | } | 983 | } |