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.
This commit is contained in:
parent
ec9add84a8
commit
8c46cce875
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user