Function rsmpeg::ffi::av_dynarray_add_nofree[][src]

pub unsafe extern "C" fn av_dynarray_add_nofree(
    tab_ptr: *mut c_void,
    nb_ptr: *mut i32,
    elem: *mut c_void
) -> i32
Expand description

Add an element to a dynamic array.

Function has the same functionality as av_dynarray_add(), but it doesn’t free memory on fails. It returns error code instead and leave current buffer untouched.

@return >=0 on success, negative otherwise @see av_dynarray_add(), av_dynarray2_add()