Skip to content

Commit

Permalink
Merge pull request #11 from nickft/9-jpeg-snack-remove-the-check-on-t…
Browse files Browse the repository at this point in the history
…he-same-media-type-for-all-objects

Remove check for same media type for all object metadata boxes
  • Loading branch information
nickft authored Jan 8, 2024
2 parents afcbaa3 + 649bdb0 commit 69f252a
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,6 @@ private void validateContentBoxes(List<BmffBox> contentBoxes) throws MipamsExcep
objectMetadataBoxToggle));
}

if (mediaType == null) {
mediaType = obmb.getMediaType();
} else {
if (mediaType != obmb.getMediaType()) {
throw new JpegSnackException(
String.format("Inconsistent media type in object metadata list. Expected %s, found %s",
mediaType, obmb.getMediaType()));
}
}

if (obmb.getId() == 0) {
throw new JpegSnackException("Object metadata box id shall be a non-zero integer.");
}
Expand Down

0 comments on commit 69f252a

Please sign in to comment.