mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
qtmux: Add a comment about how atom_trak_set_elst_entry() works
This commit is contained in:
parent
c7aa449e58
commit
2987e66f22
1 changed files with 4 additions and 0 deletions
|
@ -2552,6 +2552,10 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux)
|
||||||
media_start = gst_util_uint64_scale_round (ctts,
|
media_start = gst_util_uint64_scale_round (ctts,
|
||||||
atom_trak_get_timescale (qtpad->trak), GST_SECOND);
|
atom_trak_get_timescale (qtpad->trak), GST_SECOND);
|
||||||
|
|
||||||
|
/* atom_trak_set_elst_entry() has a quirk - if the edit list
|
||||||
|
* is empty because there's no gap added above, this call
|
||||||
|
* will not replace index 1, it will create the entry at index 0.
|
||||||
|
* Luckily, that's exactly what we want here */
|
||||||
atom_trak_set_elst_entry (qtpad->trak, 1, duration, media_start,
|
atom_trak_set_elst_entry (qtpad->trak, 1, duration, media_start,
|
||||||
(guint32) (1 * 65536.0));
|
(guint32) (1 * 65536.0));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue