[][src]Function stainless_ffmpeg_sys::swr_next_pts

pub unsafe extern "C" fn swr_next_pts(s: *mut SwrContext, pts: i64) -> i64

Convert the next timestamp from input to output timestamps are in 1/(in_sample_rate * out_sample_rate) units.

@note There are 2 slightly differently behaving modes. @li When automatic timestamp compensation is not used, (min_compensation >= FLT_MAX) in this case timestamps will be passed through with delays compensated @li When automatic timestamp compensation is used, (min_compensation < FLT_MAX) in this case the output timestamps will match output sample numbers. See ffmpeg-resampler(1) for the two modes of compensation.

@param s[in] initialized Swr context @param pts[in] timestamp for the next input sample, INT64_MIN if unknown @see swr_set_compensation(), swr_drop_output(), and swr_inject_silence() are function used internally for timestamp compensation. @return the output timestamp for the next output sample