mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-03-30 11:37:01 -07:00
3d6efeba5eb41f48ab9213a3e4d4f75eb9928dba
time_bases, allow unsetting time_base
Instead of silently passing possibly unset `time_base`s back into ffmpeg, force users to explicitly handle (even if just by early panic) their absence. BREAKING CHANGE: `time_base` and `set_time_base` functions now return/accept Option<Rational> (±Into). `unwrap`/`expect` is a valid way to surface this unwanted state early in user code. For symmetry, `set_time_base` also allows unsetting by passing a `None`, so all existing calls (with non-zero timebases) need to wrap the argument in `Some`.
Description
Languages
Rust
99.6%
Nix
0.4%