Function rsmpeg::ffi::av_buffer_make_writable[][src]

pub unsafe extern "C" fn av_buffer_make_writable(
    buf: *mut *mut AVBufferRef
) -> i32
Expand description

Create a writable reference from a given buffer reference, avoiding data copy if possible.

@param buf buffer reference to make writable. On success, buf is either left untouched, or it is unreferenced and a new writable AVBufferRef is written in its place. On failure, buf is left untouched. @return 0 on success, a negative AVERROR on failure.