diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/fmp4/src/fmp4mux/imp.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/fmp4/src/fmp4mux/imp.rs b/generic/fmp4/src/fmp4mux/imp.rs index ba14f8194..a2d232e19 100644 --- a/generic/fmp4/src/fmp4mux/imp.rs +++ b/generic/fmp4/src/fmp4mux/imp.rs @@ -1252,10 +1252,6 @@ impl FMP4Mux { fragment_end_pts, ) = self.drain_buffers(element, state, settings, timeout, at_eos)?; - // For ONVIF, replace all timestamps with timestamps based on UTC times. - let max_end_utc_time = - self.preprocess_drained_streams_onvif(element, state, &mut drained_streams)?; - // Remove all GAP buffers before processing them further for (_, _, buffers) in &mut drained_streams { buffers.retain(|buf| { @@ -1265,6 +1261,10 @@ impl FMP4Mux { }); } + // For ONVIF, replace all timestamps with timestamps based on UTC times. + let max_end_utc_time = + self.preprocess_drained_streams_onvif(element, state, &mut drained_streams)?; + // Create header now if it was not created before and return the caps let mut caps = None; if state.stream_header.is_none() { |