Skip to content

Commit

Permalink
fix slice example
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcodes2020 committed Jan 27, 2024
1 parent 0f9aa6a commit 305e1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/slice/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn main() {
.expect("ERROR unsupported codec!");

match local_codec_params.codec_type {
ffi::AVMediaType_AVMEDIA_TYPE_VIDEO => {
ffi::AVMEDIA_TYPE_VIDEO => {
if video_stream_index.is_none() {
video_stream_index = Some(i);
codec_ptr = local_codec;
Expand All @@ -95,7 +95,7 @@ fn main() {
local_codec_params.width, local_codec_params.height
);
}
ffi::AVMediaType_AVMEDIA_TYPE_AUDIO => {
ffi::AVMEDIA_TYPE_AUDIO => {
println!(
"Audio Codec: {} channels, sample rate {}",
local_codec_params.channels, local_codec_params.sample_rate
Expand Down

0 comments on commit 305e1bb

Please sign in to comment.