Function ffmpeg_sys_the_third::av_dynarray_add_nofree

source ·
pub unsafe extern "C" fn av_dynarray_add_nofree(
    tab_ptr: *mut c_void,
    nb_ptr: *mut c_int,
    elem: *mut c_void
) -> c_int
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()