Fix TXTP upper ranges

This commit is contained in:
bnnm 2018-06-02 16:01:58 +02:00
parent 311eeebc1b
commit 776d85fee0

View File

@ -238,7 +238,7 @@ static int add_filename(txtp_header * txtp, char *filename) {
if (sscanf(config, "%d~%d", &subsong_start, &subsong_end) == 2) {
if (subsong_start > 0 && subsong_end > 0) {
range_start = subsong_start-1;
range_end = subsong_end-1;
range_end = subsong_end;
}
}
else if (sscanf(config, "%u", &subsong_start) == 1) {