Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolverson committed Oct 1, 2024
1 parent 333c5d9 commit 52fb290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions rtp/src/codecs/av1/av1_test.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::codecs::av1::leb128::read_leb128;
use crate::codecs::av1::obu::{
OBU_HAS_EXTENSION_BIT, OBU_TYPE_FRAME, OBU_TYPE_FRAME_HEADER, OBU_TYPE_METADATA,
OBU_TYPE_SEQUENCE_HEADER, OBU_TYPE_TEMPORAL_DELIMITER, OBU_TYPE_TILE_GROUP, OBU_TYPE_TILE_LIST,
};
use crate::codecs::av1::leb128::read_leb128;
use crate::error::Result;

use super::*;
Expand Down Expand Up @@ -454,7 +454,6 @@ fn test_split_two_obus_into_two_packets() -> Result<()> {
Ok(())
}


#[test]
fn read_leb128_0() {
let bytes = vec![0u8];
Expand Down
2 changes: 1 addition & 1 deletion rtp/src/codecs/av1/leb128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn decode_leb128(mut val: u64) -> u32 {
b |= val & 0b_0111_1111;
val >>= 8;
if val == 0 {
return b as u32;
return b as u32;
}
b <<= 7;
}
Expand Down

0 comments on commit 52fb290

Please sign in to comment.