Fix TXTH loop behavior positive to include 0

This commit is contained in:
bnnm 2022-08-06 20:03:25 +02:00
parent 39285fe4e5
commit f2d3a426fe

View File

@ -1202,6 +1202,8 @@ static int parse_keyval(STREAMFILE* sf_, txth_header* txth, const char* key, cha
else if (txth->loop_behavior == POSITIVE) {
if (txth->loop_flag == 0xFF || txth->loop_flag == 0xFFFF || txth->loop_flag == 0xFFFFFFFF)
txth->loop_flag = 0;
else if (txth->loop_flag == 0)
txth->loop_flag = 1;
}
else if (txth->loop_behavior == INVERTED) {
txth->loop_flag = (txth->loop_flag == 0);