cargo fmt

This commit is contained in:
Scott Lamb 2021-09-07 19:37:33 -07:00
parent 96023c5a98
commit 69f12bde8e

View File

@ -524,14 +524,13 @@ impl<W: AsyncWrite + AsyncSeek + Send + Unpin> Mp4Writer<W> {
self.video_params = Some(p); self.video_params = Some(p);
} }
let size = u32::try_from(frame.data().remaining())?; let size = u32::try_from(frame.data().remaining())?;
self.video_trak self.video_trak.add_sample(
.add_sample( self.mdat_pos,
self.mdat_pos, size,
size, frame.timestamp,
frame.timestamp, frame.loss,
frame.loss, self.allow_loss,
self.allow_loss, )?;
)?;
self.mdat_pos = self self.mdat_pos = self
.mdat_pos .mdat_pos
.checked_add(size) .checked_add(size)