avfilter/vf_colorspace: fix message for missing/incorrect colorspace

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
Sami Boukortt 2023-05-30 12:29:06 +02:00 committed by Ronald S. Bultje
parent 81f658b99d
commit 06e8eedeba
1 changed files with 3 additions and 3 deletions

View File

@ -572,15 +572,15 @@ static int create_filtergraph(AVFilterContext *ctx,
if (s->out_csp == AVCOL_SPC_UNSPECIFIED) { if (s->out_csp == AVCOL_SPC_UNSPECIFIED) {
if (s->user_all == CS_UNSPECIFIED) { if (s->user_all == CS_UNSPECIFIED) {
av_log(ctx, AV_LOG_ERROR, av_log(ctx, AV_LOG_ERROR,
"Please specify output transfer characteristics\n"); "Please specify output colorspace\n");
} else { } else {
av_log(ctx, AV_LOG_ERROR, av_log(ctx, AV_LOG_ERROR,
"Unsupported output color property %d\n", s->user_all); "Unsupported output color property %d\n", s->user_all);
} }
} else { } else {
av_log(ctx, AV_LOG_ERROR, av_log(ctx, AV_LOG_ERROR,
"Unsupported output transfer characteristics %d (%s)\n", "Unsupported output colorspace %d (%s)\n", s->out_csp,
s->out_csp, av_color_space_name(s->out_csp)); av_color_space_name(s->out_csp));
} }
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }