qtmux: Always write edit lists for the tracks to give a more accurate duration
authorSebastian Dröge <sebastian@centricular.com>
Mon, 14 Nov 2016 12:44:11 +0000 (14:44 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 19 Nov 2016 11:53:34 +0000 (13:53 +0200)
Always write an edit list for the whole track. In general this is not
necessary except for the case of having a gap or DTS adjustment but
it allows to give the whole track's duration in the usually more
accurate media timescale.

https://bugzilla.gnome.org/show_bug.cgi?id=774403

gst/isomp4/gstqtmux.c

index b1b4ad9..66cb22f 100644 (file)
@@ -2536,8 +2536,12 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux)
             (guint32) (1 * 65536.0));
       }
 
-      /* has shift */
-      if (has_gap || (qtpad->dts_adjustment > 0)) {
+      /* Always write an edit list for the whole track. In general this is not
+       * necessary except for the case of having a gap or DTS adjustment but
+       * it allows to give the whole track's duration in the usually more
+       * accurate media timescale
+       */
+      {
         GstClockTime ctts = 0;
         guint32 media_start;