diff options
| author | Pierre-Anthony Lemieux <pal@palemieux.com> | 2019-12-17 12:05:00 -0800 |
|---|---|---|
| committer | Pierre-Anthony Lemieux <pal@palemieux.com> | 2019-12-17 12:05:07 -0800 |
| commit | 166e7b4b202bc8febb13b59710579fbbd724e2b6 (patch) | |
| tree | bc373d2105a9ef67b8cd4e3ca5593c0bca9a1c24 /src/JP2K_Sequence_Parser.cpp | |
| parent | dd3acfff947ca52e1a3260243cb38f7035626282 (diff) | |
- Added support for optional CPF, CAP and PRF segments
- Fixed encoding of J2KExtendedCapabilities
Diffstat (limited to 'src/JP2K_Sequence_Parser.cpp')
| -rwxr-xr-x | src/JP2K_Sequence_Parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/JP2K_Sequence_Parser.cpp b/src/JP2K_Sequence_Parser.cpp index a1ece3f..e8d779c 100755 --- a/src/JP2K_Sequence_Parser.cpp +++ b/src/JP2K_Sequence_Parser.cpp @@ -255,7 +255,9 @@ operator==(const ASDCP::JP2K::ExtendedCapabilities_t& lhs, const ASDCP::JP2K::Ex { if (lhs.Pcap != rhs.Pcap) return false; - for (ui32_t i = 0; i < JP2K::MaxCapabilities; i++) + if (lhs.N != rhs.N) return false; + + for (ui32_t i = 0; i < lhs.N; i++) { if (lhs.Ccap[i] != rhs.Ccap[i]) return false; |
