Created by: uvjustin
It doesn't seem safe to rely on the return value of lib.avfilter_pad_get_name()
to iterate. The docs say that it is up to the caller to ensure the index is valid: https://ffmpeg.org/doxygen/trunk/group__lavfi.html#ga2d69631bb24a0a2b7ac0e00fe1dfab3b This seemed to be causing some spurious test errors on some platforms.
Before libavfilter 8.3.100 (ffmpeg < 5.0), the function to use to get the filter count was avfilter_pad_count
, but that is now deprecated. We can now use either avfilter_filter_pad_count
or use the AVFilter.nb_input
(output) fields directly. See https://ffmpeg.org/pipermail/ffmpeg-cvslog/2021-August/128485.html