]> git.sesse.net Git - ffmpeg/commit
lavfi: check the validity of formats lists.
authorNicolas George <george@nsup.org>
Thu, 13 Aug 2020 11:18:15 +0000 (13:18 +0200)
committerNicolas George <george@nsup.org>
Tue, 8 Sep 2020 12:10:31 +0000 (14:10 +0200)
commit69f5f6ea375950b4845b241ee27054bfc8f00343
tree703d6382d4b1c297ffa885cca861e4351891ddba
parent6479f40afa3c706ada2e2c0b05de473285d6a926
lavfi: check the validity of formats lists.

Part of the code expects valid lists, in particular no duplicates.
These tests allow to catch bugs in filters (unlikely but possible)
and to give a clear message when the error comes from the user
((a)formats) or the application (buffersink).

If we decide to switch to a more efficient merging algorithm,
possibly sorting the lists, these functions will be the preferred
place for pre-processing, and can be renamed accordingly.
libavfilter/avfiltergraph.c
libavfilter/formats.c
libavfilter/formats.h