Commit 611b2547 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Luca Barbato
Browse files

crav1e: api: Add function for setting time base

This is required for ratecontrol to work.
Signed-off-by: default avatarDerek Buitenhuis <>
parent 10d564a3
......@@ -129,6 +129,16 @@ pub unsafe extern "C" fn rav1e_config_default() -> *mut Config {
/// Set the time base of the stream
/// Needed for rate control.
pub unsafe extern "C" fn rav1e_config_set_time_base(cfg: *mut Config,
time_base: Rational)
(*cfg).cfg.enc.time_base = time_base
/// Set pixel format of the stream.
/// Supported values for subsampling and chromapos are defined by the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment