Skip to content

Commit

Permalink
Add more settable methods for AVStream (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 authored Mar 17, 2024
1 parent 069d83d commit d0d1793
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/avformat/avformat.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{
ffi::CStr,
ops::Drop,
os::raw::c_int,
ptr::{self, NonNull},
};

Expand Down Expand Up @@ -464,6 +465,12 @@ impl AVOutputFormat {

wrap_ref_mut!(#[repr(transparent)] AVStream: ffi::AVStream);
settable!(AVStream {
avg_frame_rate: AVRational,
discard: i32,
disposition: c_int,
duration: i64,
event_flags: c_int,
sample_aspect_ratio: AVRational,
time_base: AVRational,
});

Expand Down

0 comments on commit d0d1793

Please sign in to comment.