fix for zones which contain multiple properties
This commit is contained in:
parent
65fdeefa7b
commit
68a8969e8d
|
@ -27,12 +27,15 @@ function parseZones(zones, base, numframes) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/^crf=/.test(zone[2])) {
|
// loop over each part of the zone
|
||||||
var crf = zone[2].replace(/^crf=/, "");
|
for (var j = 2; j < zone.length; j++) {
|
||||||
frames.fill(["crf", crf], parseInt(zone[0]), parseInt(zone[1])+1);
|
if (/^crf=/.test(zone[j])) {
|
||||||
} else if (/^b=/.test(zone[2])) {
|
var crf = zone[j].replace(/^crf=/, "");
|
||||||
var b = zone[2].replace(/^b=/, "");
|
frames.fill(["crf", crf], parseInt(zone[0]), parseInt(zone[1])+1);
|
||||||
frames.fill(["b", b], parseInt(zone[0]), parseInt(zone[1])+1);
|
} else if (/^b=/.test(zone[j])) {
|
||||||
|
var b = zone[j].replace(/^b=/, "");
|
||||||
|
frames.fill(["b", b], parseInt(zone[0]), parseInt(zone[1])+1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue