Function av_buffer_pool_get

pub unsafe extern "C" fn av_buffer_pool_get(
    pool: *mut AVBufferPool,
) -> *mut AVBufferRef
Available on crate feature dep_ffmpeg only.
Expand description

Allocate a new AVBuffer, reusing an old buffer from the pool when available. This function may be called simultaneously from multiple threads.

@return a reference to the new buffer on success, NULL on error.