avidemux: also add the frame-type for the stream index

This commit is contained in:
Stefan Kost 2011-02-17 17:57:42 +02:00
parent 80d820ff29
commit d8f29266e9

View file

@ -4491,9 +4491,10 @@ gst_avi_demux_add_assoc (GstAviDemux * avi, GstAviStream * stream,
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,
GST_FORMAT_TIME, stream->current_total, GST_FORMAT_BYTES, offset,
GST_FORMAT_DEFAULT, stream->current_entry, NULL);
keyframe ? GST_ASSOCIATION_FLAG_KEY_UNIT :
GST_ASSOCIATION_FLAG_DELTA_UNIT, GST_FORMAT_TIME, stream->current_total,
GST_FORMAT_BYTES, offset, GST_FORMAT_DEFAULT, stream->current_entry,
NULL);
}
}