diff options
| author | John Hurst <jhurst@cinecert.com> | 2020-10-21 10:50:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-21 10:50:37 -0700 |
| commit | 8400c964b7852fd5be2b23640bf665cf69d85593 (patch) | |
| tree | eb9bfad2d675c910cf4ea75c75d2749fd923b264 /src/phdr-unwrap.cpp | |
| parent | d417531ed59434ecaee487adfdf54646408479bf (diff) | |
| parent | 6692ed39935bf2a67faefa39d16fcf9cb11431a1 (diff) | |
Merge pull request #69 from Jason-elkins/check_optional_values_arent_empty
Check optional values arent empty
Diffstat (limited to 'src/phdr-unwrap.cpp')
| -rwxr-xr-x | src/phdr-unwrap.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/phdr-unwrap.cpp b/src/phdr-unwrap.cpp index bd5a5a3..21c088c 100755 --- a/src/phdr-unwrap.cpp +++ b/src/phdr-unwrap.cpp @@ -281,8 +281,10 @@ read_JP2K_file(CommandOptions& Options) if ( KM_SUCCESS(result) ) { assert(rgba_descriptor); - frame_count = rgba_descriptor->ContainerDuration; - + if ( ! rgba_descriptor->ContainerDuration.empty() ) + { + frame_count = rgba_descriptor->ContainerDuration; + } if ( Options.verbose_flag ) { rgba_descriptor->Dump(); @@ -296,8 +298,10 @@ read_JP2K_file(CommandOptions& Options) if ( KM_SUCCESS(result) ) { assert(cdci_descriptor); - frame_count = cdci_descriptor->ContainerDuration; - + if ( ! cdci_descriptor->ContainerDuration.empty() ) + { + frame_count = cdci_descriptor->ContainerDuration; + } if ( Options.verbose_flag ) { cdci_descriptor->Dump(); |
