shithub: ft²

Download patch

ref: b3e8a14835bcf111e7778db2c5cf21a4ef7dcd44
parent: fdcc53f651378abc003591a8e2371af7d6b393a1
author: Olav Sørensen <olav.sorensen@live.no>
date: Fri May 12 15:08:15 EDT 2023

Don't ask...

--- a/src/smploaders/ft2_load_flac.c
+++ b/src/smploaders/ft2_load_flac.c
@@ -289,7 +289,7 @@
 			}
 			else if (length > 10 && !memcmp(tag, "LOOPSTART=", 10))
 			{
-				loopLength = atoi(&tag[10]);
+				loopStart = atoi(&tag[10]);
 			}
 			else if (length > 11 && !memcmp(tag, "LOOPLENGTH=", 11))
 			{
@@ -298,8 +298,8 @@
 
 			if (loopLength > 0)
 			{
-				s->loopStart = loopLength;
-				s->loopLength = loopStart;
+				s->loopStart = loopStart;
+				s->loopLength = loopLength;
 
 				DISABLE_LOOP(s->flags);
 				s->flags |= LOOP_FWD;