[FFmpeg-devel] [PATCH 01/25] avfilter/formats: document ff_default_query_formats

Niklas Haas ffmpeg at haasn.xyz
Thu Nov 9 14:19:33 EET 2023


From: Niklas Haas <git at haasn.dev>

In particular, make it clear that this function will not touch format
lists which were already set by the caller before calling into this
function.
---
 libavfilter/formats.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavfilter/formats.h b/libavfilter/formats.h
index 22224dce2d..d44890109e 100644
--- a/libavfilter/formats.h
+++ b/libavfilter/formats.h
@@ -198,6 +198,10 @@ void ff_channel_layouts_unref(AVFilterChannelLayouts **ref);
 void ff_channel_layouts_changeref(AVFilterChannelLayouts **oldref,
                                   AVFilterChannelLayouts **newref);
 
+/**
+ * Sets all remaining unset filter lists for all inputs/outputs to their
+ * corresponding `ff_all_*()` lists.
+ */
 av_warn_unused_result
 int ff_default_query_formats(AVFilterContext *ctx);
 
-- 
2.42.0



More information about the ffmpeg-devel mailing list