From 096bff9c95df163c356add3c875dd87525ea9685 Mon Sep 17 00:00:00 2001 From: Adam Pongracz Date: Tue, 19 Nov 2024 22:10:57 +0100 Subject: [PATCH] Update CompositionImageEssenceDescriptorModel.java (#391) Fix for #296 . Missing VideoLineMap element shall be reported for all applications. --- .../st2067_2/CompositionImageEssenceDescriptorModel.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/netflix/imflibrary/st2067_2/CompositionImageEssenceDescriptorModel.java b/src/main/java/com/netflix/imflibrary/st2067_2/CompositionImageEssenceDescriptorModel.java index dca946cd..bd302cbc 100644 --- a/src/main/java/com/netflix/imflibrary/st2067_2/CompositionImageEssenceDescriptorModel.java +++ b/src/main/java/com/netflix/imflibrary/st2067_2/CompositionImageEssenceDescriptorModel.java @@ -177,7 +177,6 @@ public CompositionImageEssenceDescriptorModel(@Nonnull UUID imageEssencedescript this.sampling = Sampling.Unknown; parseApp5SubDescriptors(); parseApp5PixelLayout(); - parseApp5VideoLineMap(); } else { this.pixelBitDepth = null; this.quantization = Quantization.Unknown; @@ -196,7 +195,7 @@ public CompositionImageEssenceDescriptorModel(@Nonnull UUID imageEssencedescript this.sampling = parseSampling(this.colorModel); } - + parseVideoLineMap(); this.j2kParameters = J2KHeaderParameters.fromDOMNode(imageEssencedescriptorDOMNode); } else { @@ -707,7 +706,7 @@ private void parseApp5SubDescriptors() { return; } - private void parseApp5VideoLineMap() { + private void parseVideoLineMap() { DOMNodeObjectModel videoLineMap = imageEssencedescriptorDOMNode.getDOMNode(regXMLLibDictionary.getSymbolNameFromURN(videoLineMapUL)); if (videoLineMap == null) { imfErrorLogger.addError(IMFErrorLogger.IMFErrors.ErrorCodes.APPLICATION_COMPOSITION_ERROR,