Closed VirtualTim closed 2 years ago
@VirtualTim Good call, not 100% sure but I think you're right. Will look into this for the next release. Thanks for reporting!
Done, see:
https://github.com/openpreserve/jpylyzer/commit/89ab111bb9d181f17481842db52db8c015f30562
I also added an example file to the jpylyzer test corpus:
https://github.com/openpreserve/jpylyzer-test-files/blob/master/oj-tnsot-0.jp2
According to the user manual:
And the spec (Table A.6):
Looking at the foundExpectedNumberOfTileParts test the first case is not accounted for. A jp2 with tnsot=0 is always going to be marked as invalid.
So am I misunderstanding the spec, or is this case unaccounted for? It sounds to me like the test should be for
len(set(tilePartsPerTileExpected.items())) == len(set(tilePartsPerTileFound.items())))
orlen(set(tilePartsPerTileFound.items()))) == 0