cargo fmt
This commit is contained in:
parent
96023c5a98
commit
69f12bde8e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user