Function ff_choose_timebase

Source
pub unsafe extern "C" fn ff_choose_timebase(
    s: *mut AVFormatContext,
    st: *mut AVStream,
    min_precision: c_int,
) -> AVRational
Expand description

Chooses a timebase for muxing the specified stream.

The chosen timebase allows sample accurate timestamps based on the framerate or sample rate for audio streams. It also is at least as precise as 1/min_precision would be.