AVFilter.preinit

Filter pre-initialization function

This callback will be called immediately after the filter context is allocated, to allow allocating and initing sub-objects.

If this callback is not NULL, the uninit callback will be called on allocation failure.

@return 0 on success, AVERROR code on failure (but the code will be dropped and treated as ENOMEM by the calling code)

struct AVFilter
int function(AVFilterContext* ctx) preinit;

Meta