mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
qtdemux: prefer the tfdt timestamp over the buffer's that is less accurate
The tfdt should be more accurate as the buffer timestamp is provided by the fragmented format manifest and it might just be an approximation.
This commit is contained in:
parent
735c6c40f8
commit
a12e41c106
1 changed files with 6 additions and 0 deletions
|
@ -2967,6 +2967,12 @@ qtdemux_parse_moof (GstQTDemux * qtdemux, const guint8 * buffer, guint length,
|
|||
GST_DEBUG_OBJECT (qtdemux, "decode time %" G_GINT64_FORMAT
|
||||
" (%" GST_TIME_FORMAT ")", decode_time,
|
||||
GST_TIME_ARGS (decode_time_ts));
|
||||
|
||||
/* Discard the fragment buffer timestamp info to avoid using it.
|
||||
* Rely on tfdt instead as it is more accurate than the timetamp
|
||||
* that is fetches from a manifest/playlist and is usually
|
||||
* less accurate. */
|
||||
qtdemux->fragment_start = -1;
|
||||
}
|
||||
|
||||
if (G_UNLIKELY (!stream)) {
|
||||
|
|
Loading…
Reference in a new issue