Skip to content

Commit

Permalink
Remove deprecated methods (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 authored Apr 5, 2024
1 parent c78469a commit 643dd97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/avcodec/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ impl<'codec> AVCodec {
// terminates with -1
Self::build_array(self.sample_fmts, -1)
}

pub fn channel_layouts(&'codec self) -> Option<&'codec [u64]> {
// terminates with -1
Self::build_array(self.channel_layouts, 0)
}
}

impl Drop for AVCodec {
Expand All @@ -151,7 +146,6 @@ settable!(AVCodecContext {
time_base: AVRational,
pkt_timebase: AVRational,
sample_rate: i32,
channels: i32,
sample_fmt: i32,
flags: i32,
bit_rate: i64,
Expand Down
7 changes: 0 additions & 7 deletions src/avformat/avformat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,6 @@ impl AVStream {
ffi::av_guess_frame_rate(ptr::null_mut(), self.as_ptr() as *mut _, ptr::null_mut())
})
}

/// Returns the pts of the last muxed packet + its duration
/// the returned value is None when used with a demuxer.
pub fn get_end_pts(&self) -> Option<i64> {
let result = unsafe { ffi::av_stream_get_end_pts(self.as_ptr()) };
(result >= 0).then_some(result)
}
}

impl<'stream> AVStream {
Expand Down

0 comments on commit 643dd97

Please sign in to comment.