aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-09-05 20:29:45 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-09-05 20:29:45 +1200
commitc8c27f7d8683403c49f5a440b29916ad6a0a1f91 (patch)
treea497e85d9ef118a777200375cec0967f319f2538
parent97dc6c78ce8ac47a61e62bf666824284714a0d8e (diff)
downloadcue-bin-split-c8c27f7d8683403c49f5a440b29916ad6a0a1f91.tar.xz
Inline the only invocation of SEC_FROM_TS
-rw-r--r--cue-bin-split.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cue-bin-split.c b/cue-bin-split.c
index 8e648fa..8b0a5ae 100644
--- a/cue-bin-split.c
+++ b/cue-bin-split.c
@@ -4,7 +4,6 @@
#include <unistd.h>
#define MIN(a, b) ((a < b)? a : b)
-#define SEC_FROM_TS(mm, ss, ff) (mm*60 + ss + ((double)ff)/FRAMES_PER_SEC)
#define FRAMES_PER_SEC 75
#define BUFFER_SIZE 1024*1024 /* Meh, good enough */
@@ -22,11 +21,10 @@ double get_sec()
if (items != 3)
{
- /* FIXME doesn't explicitly close fin from cue-bin-split.c upon exit() */
fprintf(stderr, "Timestamp malformed\n");
exit(-1);
}
- return SEC_FROM_TS(mm, ss, ff);
+ return (mm*60 + ss + ((double)ff)/FRAMES_PER_SEC);
}
/* Constructs an output filename in the specified buffer based on the given format and track number