fix handling unavailable uninherited timing point value

This commit is contained in:
MaxOhn
2022-03-16 00:12:35 +01:00
parent 8986cf334e
commit db4aa46e2b
+1 -1
View File
@@ -280,7 +280,7 @@ macro_rules! parse_timingpoints_body {
let beat_len: f64 = split.next().next_field("beat len")?.trim().parse()?;
let timing_change = split.nth(4).and_then(|value| value.bytes().next());
if timing_change == Some(b'1') {
if matches!(timing_change, Some(b'1') | None) {
$self.timing_points.push(TimingPoint { time, beat_len });
if time < prev_time {