diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-11-22 15:58:37 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-23 18:17:06 +0200 |
commit | 9acc0b5d0eaf90aac845d5519ab78c613bd75692 (patch) | |
tree | 1db249d77247c9649de266d1fc9695cb833291aa | |
parent | 153a8ae752c90d07190ef45803422a4f71ea8bff (diff) |
qtmux: Only write "gap" edit list if there is a non-zero gap
https://bugzilla.gnome.org/show_bug.cgi?id=774840
-rw-r--r-- | gst/isomp4/gstqtmux.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 66cb22f36..61362d907 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -2529,11 +2529,14 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux) lateness = gst_util_uint64_scale_round (diff, qtmux->timescale, GST_SECOND); - GST_DEBUG_OBJECT (qtmux, "Pad %s is a late stream by %" GST_TIME_FORMAT, - GST_PAD_NAME (qtpad->collect.pad), GST_TIME_ARGS (lateness)); + if (lateness > 0) { + GST_DEBUG_OBJECT (qtmux, + "Pad %s is a late stream by %" GST_TIME_FORMAT, + GST_PAD_NAME (qtpad->collect.pad), GST_TIME_ARGS (lateness)); - atom_trak_set_elst_entry (qtpad->trak, 0, lateness, (guint32) - 1, - (guint32) (1 * 65536.0)); + atom_trak_set_elst_entry (qtpad->trak, 0, lateness, (guint32) - 1, + (guint32) (1 * 65536.0)); + } } /* Always write an edit list for the whole track. In general this is not |