diff options
| author | jhurst <jhurst@cinecert.com> | 2020-10-08 09:31:16 -0700 |
|---|---|---|
| committer | jhurst <jhurst@cinecert.com> | 2020-10-08 09:31:16 -0700 |
| commit | f8b52f9e183b3d20e050a8760f5e8caed35b2e9d (patch) | |
| tree | cc9b459d6b4218541ec2be06472642a970e7f919 /src/AS_DCP_JP2K.cpp | |
| parent | 25416a414301ddf79f499373c279740a519a27b1 (diff) | |
| parent | d417531ed59434ecaee487adfdf54646408479bf (diff) | |
Merge branch 'master' into sha1_builtin
Diffstat (limited to 'src/AS_DCP_JP2K.cpp')
| -rwxr-xr-x | src/AS_DCP_JP2K.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AS_DCP_JP2K.cpp b/src/AS_DCP_JP2K.cpp index 129f53d..d5fddaa 100755 --- a/src/AS_DCP_JP2K.cpp +++ b/src/AS_DCP_JP2K.cpp @@ -319,7 +319,7 @@ ASDCP::JP2K_PDesc_to_MD(const JP2K::PictureDescriptor& PDesc, EssenceSubDescriptor.PictureComponentSizing.set_has_value(); ui32_t precinct_set_size = 0; - for ( ui32_t i = 0; PDesc.CodingStyleDefault.SPcod.PrecinctSize[i] != 0 && i < MaxPrecincts; ++i ) + for ( ui32_t i = 0; i < MaxPrecincts && PDesc.CodingStyleDefault.SPcod.PrecinctSize[i] != 0; ++i ) precinct_set_size++; ui32_t csd_size = sizeof(CodingStyleDefault_t) - MaxPrecincts + precinct_set_size; |
