avfilter/formats: correct error message

The check is for color space, not range.
release/7.1
Gyan Doshi 5 months ago
parent a4228a0ac1
commit b5daaa1503
  1. 2
      libavfilter/formats.c

@ -977,7 +977,7 @@ int ff_formats_check_color_spaces(void *log, const AVFilterFormats *fmts)
{
for (int i = 0; fmts && i < fmts->nb_formats; i++) {
if (fmts->formats[i] == AVCOL_SPC_RESERVED) {
av_log(log, AV_LOG_ERROR, "Invalid color range\n");
av_log(log, AV_LOG_ERROR, "Invalid color space\n");
return AVERROR(EINVAL);
}
}

Loading…
Cancel
Save