av_resample_compensate

Compensate samplerate/timestamp drift. The compensation is done by changing the resampler parameters, so no audible clicks or similar distortions occur @param compensation_distance distance in output samples over which the compensation should be performed @param sample_delta number of output samples which should be output less

@nogc nothrow extern (C) deprecated
static if(FF_API_AVCODEC_RESAMPLE)
void
av_resample_compensate

Examples

av_resample_compensate(c, 10, 500) here instead of 510 samples only 500 samples would be output

note, due to rounding the actual compensation might be slightly different, especially if the compensation_distance is large and the in_rate used during init is small

Meta