diff options
author | Niklas Haas <git@haasn.dev> | 2023-10-20 15:33:16 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2023-12-31 13:33:01 -0800 |
commit | 0e9cf1abf558a5c71834548679c658b68244289d (patch) | |
tree | 4f42ae22e0928ff4e2f1e16e5e2d5a0f615e8336 /libavdevice/xv.c | |
parent | 1b0ca47707a01dc5709feeda859658a9d13621b8 (diff) | |
download | ffmpeg-0e9cf1abf558a5c71834548679c658b68244289d.tar.gz |
avfilter: always call ff_default_query_formats
Even if a query func is set. This is safe to do, because
ff_default_query_formats is documented not to touch any filter lists
that were already set by the query func.
The reason to do this is because it allows us to extend
AVFilterFormatsConfig without having to touch every filter in existence.
An alternative implementation of this commit would be to explicitly add
a `ff_default_query_formats` call at the end of every query_formats
function, but that would end up functionally equivalent to this change
while touching a whole lot more code paths for no reason.
As a bonus, eliminates some code/logic duplication from this function.
Diffstat (limited to 'libavdevice/xv.c')
0 files changed, 0 insertions, 0 deletions