summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-05-23 11:25:03 +0000
committer Eric Hameleers <alien@slackware.com>2019-05-23 11:25:03 +0000
commit695c63b2fd5607c18f94b45c5fc01d97c8128d5c (patch)
tree8aa3b21d91d25965cb2ab7f5cd450a4b5c043abd
parent41ecf601e04ed4d9ceb97d0289885e8bf09b6e1c (diff)
downloadasb-695c63b2fd5607c18f94b45c5fc01d97c8128d5c.tar.gz
asb-695c63b2fd5607c18f94b45c5fc01d97c8128d5c.tar.xz
Initial revision
-rw-r--r--shntool/build/patches/shntool_large-times.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/shntool/build/patches/shntool_large-times.patch b/shntool/build/patches/shntool_large-times.patch
new file mode 100644
index 00000000..be4716e6
--- /dev/null
+++ b/shntool/build/patches/shntool_large-times.patch
@@ -0,0 +1,39 @@
+diff -aur shntool-3.0.10-clean/src/core_mode.c shntool-3.0.10/src/core_mode.c
+--- shntool-3.0.10-clean/src/core_mode.c 2009-03-30 06:55:33.000000000 +0100
++++ shntool-3.0.10/src/core_mode.c 2012-08-11 16:37:58.000000000 +0100
+@@ -310,8 +310,8 @@
+ if (sec >= 60)
+ st_error("invalid value for seconds: [%d]",sec);
+
+- bytes = (wlong)(min * info->rate * 60) +
+- (wlong)(sec * info->rate);
++ bytes = (((wlong)min) * info->rate * 60) +
++ (((wlong)sec) * info->rate);
+
+ return bytes;
+ }
+@@ -358,9 +358,9 @@
+ if (frames >= 75)
+ st_error("invalid value for frames: [%d]",frames);
+
+- bytes = (wlong)(min * CD_RATE * 60) +
+- (wlong)(sec * CD_RATE) +
+- (wlong)(frames * CD_BLOCK_SIZE);
++ bytes = (((wlong)min) * CD_RATE * 60) +
++ (((wlong)sec) * CD_RATE) +
++ (((wlong)frames) * CD_BLOCK_SIZE);
+
+ return bytes;
+ }
+@@ -403,8 +403,8 @@
+
+ nearest_byte = (int)((((double)ms * (double)info->rate) / 1000.0) + 0.5);
+
+- bytes = (wlong)(min * info->rate * 60) +
+- (wlong)(sec * info->rate);
++ bytes = (((wlong)min) * info->rate * 60) +
++ (((wlong)sec) * info->rate);
+
+ if (PROB_NOT_CD(info)) {
+ bytes += nearest_byte;
+