pub unsafe extern "C" fn mbuf_coded_video_frame_add_ancillary_data(
frame: *mut mbuf_coded_video_frame,
data: *mut mbuf_ancillary_data,
) -> c_intExpand description
Add an existing ancillary data to a given frame.
This function is mainly used when copying ancillary data from a frame to another. The ancillary data will be referenced by the frame, no copy will be done.
@note If a data with the same name already exists, the function returns -EEXIST. It does not replaces the data.
@param frame: The frame. @param data: The ancillary data to add.
@return 0 on success, negative errno on error.