Skip to content

Commit

Permalink
fix unused warning, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Nov 6, 2024
1 parent d4daf35 commit 6eea627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/store/re_video/src/decode/ffmpeg_h264/ffmpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ fn should_ignore_log_msg(msg: &str) -> bool {
/// Strips out buffer addresses from `FFmpeg` log messages so that we can use it with the log-once family of methods.
fn sanitize_ffmpeg_log_message(msg: &str) -> String {
// Make warn_once work on `[swscaler @ 0x148db8000]` style warnings even if the address is different every time.
// In older versions of FFmpeg this may happen several times in the same message (happend in 5.1, did not happen in 7.1).
// In older versions of FFmpeg this may happen several times in the same message (happens in 5.1, did not happen in 7.1).
let mut msg = msg.to_owned();
while let Some(start_pos) = msg.find("[swscaler @ 0x") {
if let Some(end_offset) = msg[start_pos..].find(']') {
Expand Down
1 change: 1 addition & 0 deletions crates/store/re_video/src/decode/ffmpeg_h264/nalu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl NalHeader {
}

/// Ref idc is a value from 0-3 that tells us how "important" the frame/sample is.
#[allow(dead_code)]
pub fn ref_idc(self) -> u8 {
(self.0 >> 5) & 0b11
}
Expand Down

0 comments on commit 6eea627

Please sign in to comment.