mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
qtmux: Always write edit lists for the tracks to give a more accurate duration
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
This commit is contained in:
parent
7d2a07076e
commit
7fb278d7d2
1 changed files with 6 additions and 2 deletions
|
@ -2536,8 +2536,12 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux)
|
||||||
(guint32) (1 * 65536.0));
|
(guint32) (1 * 65536.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* has shift */
|
/* Always write an edit list for the whole track. In general this is not
|
||||||
if (has_gap || (qtpad->dts_adjustment > 0)) {
|
* 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;
|
GstClockTime ctts = 0;
|
||||||
guint32 media_start;
|
guint32 media_start;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue