From ab3e3df49a9d4a44a3bf11211e31bdeac3ef7bcf Mon Sep 17 00:00:00 2001 From: jhurst Date: Sun, 21 Sep 2014 13:27:43 +0000 Subject: imf bugs date parse bug timed-text transform removed --- src/wavesplit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wavesplit.cpp') diff --git a/src/wavesplit.cpp b/src/wavesplit.cpp index f3dd3fd..3fc6899 100755 --- a/src/wavesplit.cpp +++ b/src/wavesplit.cpp @@ -138,12 +138,12 @@ public: case 'd': TEST_EXTRA_ARG(i, 'd'); - duration = atoi(argv[i]); // TODO: test for negative value, should use strtol() + duration = abs(strtol(argv[i], 0, 10)); break; case 'f': TEST_EXTRA_ARG(i, 'f'); - start_frame = atoi(argv[i]); // TODO: test for negative value, should use strtol() + start_frame = abs(strtol(argv[i], 0, 10)); break; case 'h': help_flag = true; break; -- cgit v1.2.3