[][src]Function ffmpeg_dev::sys::ff_formats_unref

pub unsafe extern "C" fn ff_formats_unref(ref_: *mut *mut AVFilterFormats)

If *ref is non-NULL, remove *ref as a reference to the format list it currently points to, deallocates that list if this was the last reference, and sets *ref to NULL.

    Before                                 After

________ ________ NULL |formats |<--------. |formats | ^ | ____ | |____________ | ____ | |____________ | |refs| | | | | |refs| | | | | |* * | | | | | | AVFilterLink | |* * | | | | | | AVFilterLink | |* *--------->|ref| | | | | | |*ref| | || | | || | || | | || || |_______ || |_____________