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.
@paramin sample_delta delta in PTS per sample
@paramin 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.
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. @paramin sample_delta delta in PTS per sample @paramin 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.