summaryrefslogtreecommitdiff
path: root/src/phdr-unwrap.cpp
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2021-01-12 12:46:52 -0800
committerJohn Hurst <jhurst@cinecert.com>2021-01-12 12:46:52 -0800
commitf69df80edc00a138f50fd527706c78617342dcdd (patch)
tree8797cf6a3afc7fca45296d753b2033d74558044f /src/phdr-unwrap.cpp
parent70d6b24694d5d243d5e09cecd34097180a4f2d62 (diff)
parent8400c964b7852fd5be2b23640bf665cf69d85593 (diff)
Merge branch 'master' into sha1_builtin
Diffstat (limited to 'src/phdr-unwrap.cpp')
-rwxr-xr-xsrc/phdr-unwrap.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/phdr-unwrap.cpp b/src/phdr-unwrap.cpp
index 0c00ea9..be62110 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();