[][src]Function stainless_ffmpeg_sys::swr_set_compensation

pub unsafe extern "C" fn swr_set_compensation(
    s: *mut SwrContext,
    sample_delta: c_int,
    compensation_distance: c_int
) -> c_int

Activate resampling compensation ("soft" compensation). This function is internally called when needed in swr_next_pts().

@param[in,out] s allocated Swr context. If it is not initialized, or SWR_FLAG_RESAMPLE is not set, swr_init() is called with the flag set. @param[in] sample_delta delta in PTS per sample @param[in] compensation_distance number of samples to compensate for @return >= 0 on success, AVERROR error codes if: @li @c s is NULL, @li @c compensation_distance is less than 0, @li @c compensation_distance is 0 but sample_delta is not, @li compensation unsupported by resampler, or @li swr_init() fails when called.