[FFmpeg-devel] [PATCH] lavfi/formats: document the negotiation process.

Michael Koch astroelectronic at t-online.de
Fri Aug 20 07:51:53 EEST 2021


+ * The steps are:
+ *
+ * 1. query_formats(): call the callbacks on all filter to set lists of
+ *                     supported formats.
+ *                     When links on a filter must eventually have the same
+ *                     format, the lists of supported formats are the same
+ *                     object in memory.
+ *                     See:
+ *http://www.normalesup.org/~george/articles/format_negotiation_in_libavfilter/#12 
<http://www.normalesup.org/%7Egeorge/articles/format_negotiation_in_libavfilter/#12>
+ *
+ *
+ * 2. query_formats(): merge lists of supported formats or insert automatic
+ *                     conversion filters.

I know almost nothing about this stuff, but it doesn't sound right that the frist
two steps use the same function. Isn't step 2 merge_formats()?

Michael



More information about the ffmpeg-devel mailing list