Function rsmpeg::ffi::av_compare_ts[][src]

pub unsafe extern "C" fn av_compare_ts(
    ts_a: i64,
    tb_a: AVRational,
    ts_b: i64,
    tb_b: AVRational
) -> i32
Expand description

Compare two timestamps each in its own time base.

@return One of the following values: - -1 if ts_a is before ts_b - 1 if ts_a is after ts_b - 0 if they represent the same position

@warning The result of the function is undefined if one of the timestamps is outside the int64_t range when represented in the other’s timebase.