Message ID | 20240828102251.1858-1-ffmpeg@gyani.pro |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avfilter/formats: correct error message | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On 2024-08-28 03:52 pm, Gyan Doshi wrote: > The check is for color space, not range. Will push tomorrow. Regards, Gyan > --- > libavfilter/formats.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavfilter/formats.c b/libavfilter/formats.c > index eabc3ec946..2b570b466e 100644 > --- a/libavfilter/formats.c > +++ b/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); > } > }
On 2024-08-31 04:29 pm, Gyan Doshi wrote: > > > On 2024-08-28 03:52 pm, Gyan Doshi wrote: >> The check is for color space, not range. > > Will push tomorrow. Pushed as b5daaa1503fd149a8e6c4964266ceb93fd7d09cd Regards, Gyan
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index eabc3ec946..2b570b466e 100644 --- a/libavfilter/formats.c +++ b/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); } }