[FFmpeg-devel] [PATCH] libavfilter: constify filter list

Brian Matherly brian.matherly at yahoo.com
Thu Feb 1 16:33:01 EET 2018


On 2/1/2018 4:03 AM, Nicolas George wrote:
> Regarding the efficiency of avfilter_next(), I think we should not care.
> Almost nobody uses that function outside lavfi anyway. If it proves a
> concern for some application, we can deal with it when it is found.

For what it's worth, I use avfilter_next() on startup in MLT to generate 
a list of valid user options:

https://github.com/mltframework/mlt/blob/master/src/modules/avformat/factory.c#L415

I would prefer some way to loop through the filters in linear time.


More information about the ffmpeg-devel mailing list