Function rsmpeg::ffi::avcodec_parameters_to_context [−][src]
pub unsafe extern "C" fn avcodec_parameters_to_context(
codec: *mut AVCodecContext,
par: *const AVCodecParameters
) -> i32
Expand description
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.