History

avfilter/vf_libplacebo: set colorspace properties on all inputs

There is no reason to only do this on the first input. It doesn't actually matter for now given that we don't constrain the color space list, but it may matter when that changes.

Niklas Haas committed 1 year ago

Commit c85879c1 parent d48745b1 file · +2 −4Browse files

Unified · Split

libavfilter/vf_libplacebo.c+2−4
@@ -1167,14 +1167,12 @@ static int libplacebo_query_format(const AVFilterContext *ctx, · 1166 unmodified lines
11671167 RET(ff_add_format(&infmts, cfg_in[0]->formats->formats[n]));
11681168 }
11691169 RET(ff_formats_ref(infmts, &cfg_in[i]->formats));
1170+ RET(ff_formats_ref(ff_all_color_spaces(), &cfg_in[i]->color_spaces));
1171+ RET(ff_formats_ref(ff_all_color_ranges(), &cfg_in[i]->color_ranges));
11701172 }
11711173
11721174 RET(ff_formats_ref(outfmts, &cfg_out[0]->formats));
11731175
1174− /* Set colorspace properties */
1175− RET(ff_formats_ref(ff_all_color_spaces(), &cfg_in[0]->color_spaces));
1176− RET(ff_formats_ref(ff_all_color_ranges(), &cfg_in[0]->color_ranges));
1177−
11781176 outfmts = s->colorspace > 0 ? ff_make_formats_list_singleton(s->colorspace)
11791177 : ff_all_color_spaces();
11801178 RET(ff_formats_ref(outfmts, &cfg_out[0]->color_spaces));

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