Function av_channel_layout_copy

Source
pub unsafe extern "C" fn av_channel_layout_copy(
    dst: *mut AVChannelLayout,
    src: *const AVChannelLayout,
) -> i32
Expand description

Make a copy of a channel layout. This differs from just assigning src to dst in that it allocates and copies the map for AV_CHANNEL_ORDER_CUSTOM.

@note the destination channel_layout will be always uninitialized before copy.

@param dst destination channel layout @param src source channel layout @return 0 on success, a negative AVERROR on error.