diff options
-rw-r--r-- | gst/flv/gstflvparse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/flv/gstflvparse.c b/gst/flv/gstflvparse.c index 935af21ba..86c638f4c 100644 --- a/gst/flv/gstflvparse.c +++ b/gst/flv/gstflvparse.c @@ -422,8 +422,11 @@ gst_flv_parse_tag_script (GstFLVDemux * demux, GstBuffer * buffer) if (demux->index && demux->times && demux->filepositions && !demux->random_access) { + guint num; + /* If an index was found and we're in push mode, insert associations */ - for (i = 0; i < MIN (demux->times->len, demux->filepositions->len); i++) { + num = MIN (demux->times->len, demux->filepositions->len); + for (i = 0; i < num; i++) { GstIndexAssociation associations[2]; guint64 time, fileposition; |