mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-03 10:13:47 +00:00
fmp4mux: Remove redundant if
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2223>
This commit is contained in:
parent
86d2f2ce1f
commit
3012dac758
1 changed files with 3 additions and 5 deletions
|
@ -2505,11 +2505,9 @@ impl FMP4Mux {
|
||||||
}
|
}
|
||||||
if stream.delta_frames.requires_dts() && start_dts.is_none() {
|
if stream.delta_frames.requires_dts() && start_dts.is_none() {
|
||||||
start_dts = Some(buffer.dts.unwrap());
|
start_dts = Some(buffer.dts.unwrap());
|
||||||
if stream.delta_frames.requires_dts() {
|
let utc_time = get_utc_time_from_buffer(&buffer.buffer)
|
||||||
let utc_time = get_utc_time_from_buffer(&buffer.buffer)
|
.and_then(|t| t.checked_add(NTP_UNIX_OFFSET.seconds()));
|
||||||
.and_then(|t| t.checked_add(NTP_UNIX_OFFSET.seconds()));
|
start_ntp_time = utc_time;
|
||||||
start_ntp_time = utc_time;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if stream.delta_frames.requires_dts() && start_dts_position.is_none() {
|
if stream.delta_frames.requires_dts() && start_dts_position.is_none() {
|
||||||
start_dts_position = Some(buffer.buffer.dts().unwrap());
|
start_dts_position = Some(buffer.buffer.dts().unwrap());
|
||||||
|
|
Loading…
Reference in a new issue