summaryrefslogtreecommitdiff
path: root/src/S12MTimecode.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2014-09-21 13:27:43 +0000
committerjhurst <>2014-09-21 13:27:43 +0000
commitab3e3df49a9d4a44a3bf11211e31bdeac3ef7bcf (patch)
tree52023c92807dde6cb56835e957349327f1b9df0b /src/S12MTimecode.h
parent8d24b6effb0377fc3041c2e024e7c5593caecc52 (diff)
imf bugs
date parse bug timed-text transform removed
Diffstat (limited to 'src/S12MTimecode.h')
-rw-r--r--src/S12MTimecode.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/S12MTimecode.h b/src/S12MTimecode.h
index e750f25..6abe3f6 100644
--- a/src/S12MTimecode.h
+++ b/src/S12MTimecode.h
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2007-2009, John Hurst
+Copyright (c) 2007-2014, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -106,10 +106,10 @@ public:
if ( *p != 0 )
{
- ui32_t hours = atoi(p);
- ui32_t minutes = atoi(p+3);
- ui32_t seconds = atoi(p+6);
- ui32_t frames = atoi(p+9);
+ ui32_t hours = strtol(p, 0, 10);
+ ui32_t minutes = strtol(p+3, 0, 10);
+ ui32_t seconds = strtol(p+6, 0, 10);
+ ui32_t frames = strtol(p+9, 0, 10);
m_FrameCount = (((((hours * 60) + minutes) * 60) + seconds) * m_FPS)+ frames;
}