History

avfilter/formats: correct error message

The check is for color space, not range.

Gyan Doshi committed 2 years ago

Commit b5daaa11 parent a4228a01 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/formats.c+1−1
@@ -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 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t