diff options
| author | jhurst <jhurst@cinecert.com> | 2015-10-07 16:41:23 +0000 |
|---|---|---|
| committer | jhurst <> | 2015-10-07 16:41:23 +0000 |
| commit | af6a1e4ef13dcf5811ccd9eb6b63d21bdc88dc70 (patch) | |
| tree | 021ae744f611d9bfd2f8832c665351132205ab0b /src/phdr-wrap.cpp | |
| parent | 77200515d9acee07988f26dadfa37ffbd169cdfb (diff) | |
o Moved personal dev environment from older gcc to newer clang. Many small changes were made to satisfy the new compiler:
- Altered many printf format codes to use the correct type for the given integer type
- Parenthesized some expressions to clarify previously ambiguous expectations of precedence
- Created macro KM_MACOSX for use in OS-specific code selection
- Removed last uses of the old C-language abs(), now using Kumu::xabs()
- Removed last uses of the old C-language atoi()
o Added platform-independent call Kumu::GetExecutablePath() (test with win32)
o Fixed a bug that was causing Array properties to be written without the (count, length) header (from PAL)
o Fixed Win32 build (from Crowe)
o Added imlementation of SMPTE ST 2092-1 pink noise generator
o Added pinkwave CLI utility
o Added font support to the IMF timed-text wrapper
Diffstat (limited to 'src/phdr-wrap.cpp')
| -rwxr-xr-x | src/phdr-wrap.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/phdr-wrap.cpp b/src/phdr-wrap.cpp index b7ef2d2..9cdc346 100755 --- a/src/phdr-wrap.cpp +++ b/src/phdr-wrap.cpp @@ -266,7 +266,7 @@ public: case 'b': TEST_EXTRA_ARG(i, 'b'); - fb_size = abs(atoi(argv[i])); + fb_size = Kumu::xabs(strtol(argv[i], 0, 10)); if ( verbose_flag ) fprintf(stderr, "Frame Buffer size: %u bytes.\n", fb_size); @@ -275,12 +275,12 @@ public: case 'D': TEST_EXTRA_ARG(i, 'D'); - component_depth = abs(atoi(argv[i])); + component_depth = Kumu::xabs(strtol(argv[i], 0, 10)); break; case 'd': TEST_EXTRA_ARG(i, 'd'); - duration = abs(atoi(argv[i])); + duration = Kumu::xabs(strtol(argv[i], 0, 10)); break; case 'E': encrypt_header_flag = false; break; @@ -288,7 +288,7 @@ public: case 'F': TEST_EXTRA_ARG(i, 'F'); - field_dominance = abs(atoi(argv[i])); + field_dominance = Kumu::xabs(strtol(argv[i], 0, 10)); if ( field_dominance > 1 ) { fprintf(stderr, "Field dominance value must be \"0\" or \"1\"\n"); @@ -363,17 +363,17 @@ public: case 's': TEST_EXTRA_ARG(i, 's'); - partition_space = abs(atoi(argv[i])); + partition_space = Kumu::xabs(strtol(argv[i], 0, 10)); break; case 't': TEST_EXTRA_ARG(i, 't'); - rgba_MinRef = abs(atoi(argv[i])); + rgba_MinRef = Kumu::xabs(strtol(argv[i], 0, 10)); break; case 'T': TEST_EXTRA_ARG(i, 'T'); - rgba_MaxRef = abs(atoi(argv[i])); + rgba_MaxRef = Kumu::xabs(strtol(argv[i], 0, 10)); break; case 'u': show_ul_values_flag = true; break; @@ -383,12 +383,12 @@ public: case 'x': TEST_EXTRA_ARG(i, 'x'); - horizontal_subsampling = abs(atoi(argv[i])); + horizontal_subsampling = Kumu::xabs(strtol(argv[i], 0, 10)); break; case 'X': TEST_EXTRA_ARG(i, 'X'); - vertical_subsampling = abs(atoi(argv[i])); + vertical_subsampling = Kumu::xabs(strtol(argv[i], 0, 10)); break; case 'Y': |
