Function ff_merge_formats

Source
pub unsafe extern "C" fn ff_merge_formats(
    a: *mut AVFilterFormats,
    b: *mut AVFilterFormats,
    type_: AVMediaType,
) -> *mut AVFilterFormats
Expand description

Return a format list which contains the intersection of the formats of a and b. Also, all the references of a, all the references of b, and a and b themselves will be deallocated.

If a and b do not share any common formats, neither is modified, and NULL is returned.