Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mux/mp4
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-12-13 12:43:16 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-12-13 12:43:16 +0300
commit3f904553ea1336fc73333ec680493c41250a03fe (patch)
treeea270ea2f9b5484fc729a4a174ea2a0261e89f9a /mux/mp4
parent289e8a08c31610fbf62056f8a156eb647e9c3a2a (diff)
Fix various new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1011>
Diffstat (limited to 'mux/mp4')
-rw-r--r--mux/mp4/src/mp4mux/boxes.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mux/mp4/src/mp4mux/boxes.rs b/mux/mp4/src/mp4mux/boxes.rs
index 760e627d3..219dc75dd 100644
--- a/mux/mp4/src/mp4mux/boxes.rs
+++ b/mux/mp4/src/mp4mux/boxes.rs
@@ -928,8 +928,8 @@ fn write_visual_sample_entry(
if let Ok(cll) = gst_video::VideoContentLightLevel::from_caps(&stream.caps) {
write_box(v, b"clli", move |v| {
- v.extend((cll.max_content_light_level() as u16).to_be_bytes());
- v.extend((cll.max_frame_average_light_level() as u16).to_be_bytes());
+ v.extend((cll.max_content_light_level()).to_be_bytes());
+ v.extend((cll.max_frame_average_light_level()).to_be_bytes());
Ok(())
})?;
}
@@ -1454,7 +1454,7 @@ fn write_cslg(
let composition_start_time = stream
.earliest_pts
.nseconds()
- .mul_div_round(timescale as u64, gst::ClockTime::SECOND.nseconds() as u64)
+ .mul_div_round(timescale as u64, gst::ClockTime::SECOND.nseconds())
.context("too earliest PTS")?;
v.extend(composition_start_time.to_be_bytes());
@@ -1462,7 +1462,7 @@ fn write_cslg(
let composition_end_time = stream
.end_pts
.nseconds()
- .mul_div_round(timescale as u64, gst::ClockTime::SECOND.nseconds() as u64)
+ .mul_div_round(timescale as u64, gst::ClockTime::SECOND.nseconds())
.context("too end PTS")?;
v.extend(composition_end_time.to_be_bytes());