Function av_bsf_alloc
pub unsafe extern "C" fn av_bsf_alloc(
filter: *const AVBitStreamFilter,
ctx: *mut *mut AVBSFContext,
) -> i32
Expand description
Allocate a context for a given bitstream filter. The caller must fill in the context parameters as described in the documentation and then call av_bsf_init() before sending any data to the filter.
@param filter the filter for which to allocate an instance. @param[out] ctx a pointer into which the pointer to the newly-allocated context will be written. It must be freed with av_bsf_free() after the filtering is done.
@return 0 on success, a negative AVERROR code on failure