mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
amend 484e38053
This commit is contained in:
parent
484e380536
commit
b6db707989
1 changed files with 5 additions and 5 deletions
|
|
@ -285,7 +285,7 @@ smf_event_decode_metadata(const smf_event_t *event)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert (off < BUFFER_SIZE);
|
assert (off <= BUFFER_SIZE);
|
||||||
return (buf);
|
return (buf);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
@ -343,7 +343,7 @@ smf_event_decode_system_realtime(const smf_event_t *event)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
assert (off < BUFFER_SIZE);
|
assert (off <= BUFFER_SIZE);
|
||||||
return (buf);
|
return (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -375,7 +375,7 @@ smf_event_decode_sysex(const smf_event_t *event)
|
||||||
} else {
|
} else {
|
||||||
off += snprintf(buf + off, BUFFER_SIZE - off, "SysEx, manufacturer 0x%x", manufacturer);
|
off += snprintf(buf + off, BUFFER_SIZE - off, "SysEx, manufacturer 0x%x", manufacturer);
|
||||||
|
|
||||||
assert (off < BUFFER_SIZE);
|
assert (off <= BUFFER_SIZE);
|
||||||
return (buf);
|
return (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -491,7 +491,7 @@ smf_event_decode_system_common(const smf_event_t *event)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
assert (off < BUFFER_SIZE);
|
assert (off <= BUFFER_SIZE);
|
||||||
return (buf);
|
return (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -640,7 +640,7 @@ smf_decode(const smf_t *smf)
|
||||||
else
|
else
|
||||||
off += snprintf(buf + off, BUFFER_SIZE - off, "; division: %d FPS, %d resolution", smf->frames_per_second, smf->resolution);
|
off += snprintf(buf + off, BUFFER_SIZE - off, "; division: %d FPS, %d resolution", smf->frames_per_second, smf->resolution);
|
||||||
|
|
||||||
assert (off < BUFFER_SIZE);
|
assert (off <= BUFFER_SIZE);
|
||||||
return (buf);
|
return (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue