From 0baf9baa3caef82a958c0180dd62f8677a607aee Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Wed, 28 Aug 2024 15:51:45 +0530 Subject: [PATCH] avfilter/formats: correct error message The check is for color space, not range. Signed-off-by: Paul B Mahol --- libavfilter/formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 13a4d74c75..05713c9159 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -1003,7 +1003,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); } }