From 7d2fb0def145fc64deef76fb4d017575d9fd419a Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Thu, 19 Aug 2021 11:26:13 -0700 Subject: [PATCH] cargo fmt --- src/codec/h264.rs | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/codec/h264.rs b/src/codec/h264.rs index 90eccb0..b195200 100644 --- a/src/codec/h264.rs +++ b/src/codec/h264.rs @@ -90,7 +90,7 @@ enum DepacketizerInputState { PostMark { timestamp: crate::Timestamp, loss: u16, - } + }, } impl Depacketizer { @@ -376,15 +376,21 @@ impl Depacketizer { for (i, nal) in self.nals.iter().enumerate() { let _ = write!(&mut nals, "\n {}: {:?}", i, nal.hdr); } - warn!("bad access unit (ended by {}) at ts {}\nerrors are:{}\nNALs are:{}", - reason, au.timestamp, errs, nals); + warn!( + "bad access unit (ended by {}) at ts {}\nerrors are:{}\nNALs are:{}", + reason, au.timestamp, errs, nals + ); } else if log_enabled!(log::Level::Trace) { let mut nals = String::new(); for (i, nal) in self.nals.iter().enumerate() { let _ = write!(&mut nals, "\n {}: {:?}", i, nal.hdr); } - trace!("access unit (ended by {}) at ts {}; NALS are:{}", - reason, au.timestamp, nals); + trace!( + "access unit (ended by {}) at ts {}; NALS are:{}", + reason, + au.timestamp, + nals + ); } } @@ -470,7 +476,11 @@ impl Depacketizer { } impl AccessUnit { - fn start(pkt: &crate::client::rtp::Packet, additional_loss: u16, same_ts_as_prev: bool) -> Self { + fn start( + pkt: &crate::client::rtp::Packet, + additional_loss: u16, + same_ts_as_prev: bool, + ) -> Self { AccessUnit { start_ctx: pkt.ctx, end_ctx: pkt.ctx,