Function avformat_index_get_entry_from_timestamp

Source
pub unsafe extern "C" fn avformat_index_get_entry_from_timestamp(
    st: *mut AVStream,
    wanted_timestamp: i64,
    flags: i32,
) -> *const AVIndexEntry
Expand description

Get the AVIndexEntry corresponding to the given timestamp.

@param st Stream containing the requested AVIndexEntry. @param wanted_timestamp Timestamp to retrieve the index entry for. @param flags If AVSEEK_FLAG_BACKWARD then the returned entry will correspond to the timestamp which is <= the requested one, if backward is 0, then it will be >= if AVSEEK_FLAG_ANY seek to any frame, only keyframes otherwise. @return A pointer to the requested AVIndexEntry if it exists, NULL otherwise.

@note The pointer returned by this function is only guaranteed to be valid until any function that takes the stream or the parent AVFormatContext as input argument is called.