From f2d3a426fe2696d3ff3894a08048f345baac2df4 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 6 Aug 2022 20:03:25 +0200 Subject: [PATCH] Fix TXTH loop behavior positive to include 0 --- src/meta/txth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meta/txth.c b/src/meta/txth.c index 2255ad4c..ab876cf5 100644 --- a/src/meta/txth.c +++ b/src/meta/txth.c @@ -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);