Function ffmpeg_sys_next::av_fast_padded_malloc
source · pub unsafe extern "C" fn av_fast_padded_malloc(
ptr: *mut c_void,
size: *mut c_uint,
min_size: usize
)
Expand description
Same behaviour av_fast_malloc but the buffer has additional AV_INPUT_BUFFER_PADDING_SIZE at the end which will always be 0.
In addition the whole buffer will initially and after resizes be 0-initialized so that no uninitialized data will ever appear.