Repository navigation
libcue 2.4.4 fixes invalid track lengths and pre-gaps. It is API- and ABI-compatible with all 2.x releases (soname libcue.so.2).
Fix
When INDEX times in a cue sheet ran backwards, for example a track starting earlier than the one before it, track_get_length() and track_get_zero_pre() returned large negative frame counts. libcue.h documents -1 as the only "not set" value, so callers treated these as real frame counts. Such fields are now left at -1, the same value the last track of a sheet already reports. A backwards INDEX 00 also no longer overwrites an explicit PREGAP. Thanks to Kaif Khan for the report and fix (#93).
Cue sheets with INDEX times in order parse exactly as before.
What's Changed
libcue (2.4.4)
[Kaif Khan]
- Never store a negative track length or pre-gap: INDEX times that
run backwards now leave the field unset (-1) instead of storing a
negative frame count, and no longer overwrite an explicit PREGAP
(PR #93)
Full Changelog: v2.4.3...v2.4.4