Skip to content

Commit

Permalink
add AV1 option in set_video_config_nals
Browse files Browse the repository at this point in the history
  • Loading branch information
wsippel committed Jan 13, 2024
1 parent 0ef7d6e commit 627043a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alvr/server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,10 @@ pub unsafe extern "C" fn HmdDriverFactory(
extern "C" fn set_video_config_nals(buffer_ptr: *const u8, len: i32, codec: i32) {
let codec = if codec == 0 {
CodecType::H264
} else {
} else if codec == 1 {
CodecType::Hevc
} else {
CodecType::AV1
};

let mut config_buffer = vec![0; len as usize];
Expand Down

0 comments on commit 627043a

Please sign in to comment.