mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
avidemux, flvdemux: mark delta-units in the index
We need to use the 'delta' flag for delta units and not the 'none' flag.
This commit is contained in:
parent
603c703cf2
commit
ade128a002
2 changed files with 6 additions and 4 deletions
|
@ -4485,8 +4485,9 @@ gst_avi_demux_add_assoc (GstAviDemux * avi, GstAviStream * stream,
|
|||
GST_LOG_OBJECT (avi, "adding association %" GST_TIME_FORMAT "-> %"
|
||||
G_GUINT64_FORMAT, GST_TIME_ARGS (timestamp), offset);
|
||||
gst_index_add_association (avi->element_index, avi->index_id,
|
||||
keyframe ? GST_ASSOCIATION_FLAG_KEY_UNIT : GST_ASSOCIATION_FLAG_NONE,
|
||||
GST_FORMAT_TIME, timestamp, GST_FORMAT_BYTES, offset, NULL);
|
||||
keyframe ? GST_ASSOCIATION_FLAG_KEY_UNIT :
|
||||
GST_ASSOCIATION_FLAG_DELTA_UNIT, GST_FORMAT_TIME, timestamp,
|
||||
GST_FORMAT_BYTES, offset, NULL);
|
||||
/* well, current_total determines TIME and entry DEFAULT (frame #) ... */
|
||||
gst_index_add_association (avi->element_index, stream->index_id,
|
||||
GST_ASSOCIATION_FLAG_NONE,
|
||||
|
|
|
@ -129,8 +129,9 @@ gst_flv_demux_parse_and_add_index_entry (GstFlvDemux * demux, GstClockTime ts,
|
|||
associations[1].value = pos;
|
||||
|
||||
gst_index_add_associationv (demux->index, demux->index_id,
|
||||
(keyframe) ? GST_ASSOCIATION_FLAG_KEY_UNIT : GST_ASSOCIATION_FLAG_NONE,
|
||||
2, (const GstIndexAssociation *) &associations);
|
||||
(keyframe) ? GST_ASSOCIATION_FLAG_KEY_UNIT :
|
||||
GST_ASSOCIATION_FLAG_DELTA_UNIT, 2,
|
||||
(const GstIndexAssociation *) &associations);
|
||||
|
||||
if (pos > demux->index_max_pos)
|
||||
demux->index_max_pos = pos;
|
||||
|
|
Loading…
Reference in a new issue