[][src]Function ffmpeg_sys_next::avcodec_parameters_to_context

pub unsafe extern "C" fn avcodec_parameters_to_context(
    codec: *mut AVCodecContext,
    par: *const AVCodecParameters
) -> c_int

Fill the codec context based on the values from the supplied codec parameters. Any allocated fields in codec that have a corresponding field in par are freed and replaced with duplicates of the corresponding field in par. Fields in codec that do not have a counterpart in par are not touched.

@return >= 0 on success, a negative AVERROR code on failure.