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);
}
let size = u32::try_from(frame.data().remaining())?;
self.video_trak
.add_sample(
self.mdat_pos,
size,
frame.timestamp,
frame.loss,
self.allow_loss,
)?;
self.video_trak.add_sample(
self.mdat_pos,
size,
frame.timestamp,
frame.loss,
self.allow_loss,
)?;
self.mdat_pos = self
.mdat_pos
.checked_add(size)