From c8c27f7d8683403c49f5a440b29916ad6a0a1f91 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 5 Sep 2016 20:29:45 +1200 Subject: Inline the only invocation of SEC_FROM_TS --- cue-bin-split.c | 4 +--- 1 file changed, 1 insertion(+), 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 #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 -- cgit v1.1