mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
qtdemux: Don't reset output timestamps when no tfdt
If a fragmented stream doesn't have a tfdt, don't reset the output timestamps at each fragment boundary by erroneously using the default value of 0. Introduced by commit 69fc48 https://bugzilla.gnome.org/show_bug.cgi?id=754230
This commit is contained in:
parent
9d1942f286
commit
1fc3d42f8a
1 changed files with 1 additions and 1 deletions
|
@ -3178,7 +3178,7 @@ qtdemux_parse_trun (GstQTDemux * qtdemux, GstByteReader * trun,
|
|||
/* If this is a GST_FORMAT_BYTES stream and there's a significant
|
||||
* difference (1 sec.) between decode_ts and timestamp, prefer the
|
||||
* former */
|
||||
if (!qtdemux->upstream_format_is_time
|
||||
if (decode_ts != 0 && !qtdemux->upstream_format_is_time
|
||||
&& ABSDIFF (decode_ts, timestamp) >
|
||||
MAX (stream->duration_last_moof / 2,
|
||||
GSTTIME_TO_QTSTREAMTIME (stream, GST_SECOND))) {
|
||||
|
|
Loading…
Reference in a new issue