mirror of https://github.com/FFmpeg/FFmpeg.git
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.release/7.0
parent
1b0ca47707
commit
0e9cf1abf5
1 changed files with 12 additions and 27 deletions
Loading…
Reference in new issue