Function ff_thread_release_buffer

Source
pub unsafe extern "C" fn ff_thread_release_buffer(
    avctx: *mut AVCodecContext,
    f: *mut ThreadFrame,
)
Expand description

Wrapper around release_buffer() frame-for multithreaded codecs. Call this function instead of avctx->release_buffer(f). The AVFrame will be copied and the actual release_buffer() call will be performed later. The contents of data pointed to by the AVFrame should not be changed until ff_thread_get_buffer() is called on it.

@param avctx The current context. @param f The picture being released.