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
1167 RET(ff_add_format(&infmts, cfg_in[0]->formats->formats[n]));1167 RET(ff_add_format(&infmts, cfg_in[0]->formats->formats[n]));
1168 }1168 }
1169 RET(ff_formats_ref(infmts, &cfg_in[i]->formats));1169 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));
1170 }1172 }
1171 1173
1172 RET(ff_formats_ref(outfmts, &cfg_out[0]->formats));1174 RET(ff_formats_ref(outfmts, &cfg_out[0]->formats));
1173 1175
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
1178 outfmts = s->colorspace > 0 ? ff_make_formats_list_singleton(s->colorspace)1176 outfmts = s->colorspace > 0 ? ff_make_formats_list_singleton(s->colorspace)
1179 : ff_all_color_spaces();1177 : ff_all_color_spaces();
1180 RET(ff_formats_ref(outfmts, &cfg_out[0]->color_spaces));1178 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