Commit 8c46cce8 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

flvdemux: minor micro-optimisation

We know these values don't change during the loop, but the compiler
doesn't and has to re-check them for every iteration.
parent ec9add84
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment