[][src]Function stainless_ffmpeg_sys::swr_config_frame

pub unsafe extern "C" fn swr_config_frame(
    swr: *mut SwrContext,
    out: *const AVFrame,
    in_: *const AVFrame
) -> c_int

Configure or reconfigure the SwrContext using the information provided by the AVFrames.

The original resampling context is reset even on failure. The function calls swr_close() internally if the context is open.

@see swr_close();

@param swr audio resample context @param output output AVFrame @param input input AVFrame @return 0 on success, AVERROR on failure.