mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
flvmux: Fix DTS validity check
This check was up-side-down, causing a bad timestamp at start and then all timestamp being delayed. https://bugzilla.gnome.org/show_bug.cgi?id=751298
This commit is contained in:
parent
d6e1e744a7
commit
212f39ee1d
1 changed files with 1 additions and 1 deletions
|
@ -1008,7 +1008,7 @@ gst_flv_mux_buffer_to_tag_internal (GstFlvMux * mux, GstBuffer * buffer,
|
|||
guint8 *data, *bdata;
|
||||
gsize bsize;
|
||||
|
||||
if (GST_CLOCK_STIME_IS_VALID (cpad->dts)) {
|
||||
if (!GST_CLOCK_STIME_IS_VALID (cpad->dts)) {
|
||||
pts = dts = cpad->last_timestamp / GST_MSECOND;
|
||||
} else {
|
||||
pts = cpad->pts / GST_MSECOND;
|
||||
|
|
Loading…
Reference in a new issue