diff --git a/Source/com/drew/metadata/mov/atoms/VideoSampleDescriptionAtom.java b/Source/com/drew/metadata/mov/atoms/VideoSampleDescriptionAtom.java index 3486f09db..7abbca4f5 100644 --- a/Source/com/drew/metadata/mov/atoms/VideoSampleDescriptionAtom.java +++ b/Source/com/drew/metadata/mov/atoms/VideoSampleDescriptionAtom.java @@ -48,6 +48,10 @@ VideoSampleDescription getSampleDescription(SequentialReader reader) throws IOEx public void addMetadata(QuickTimeVideoDirectory directory) { + if (sampleDescriptions.size() == 0) { + return; + } + VideoSampleDescription sampleDescription = sampleDescriptions.get(0); QuickTimeDictionary.setLookup(QuickTimeVideoDirectory.TAG_VENDOR, sampleDescription.vendor, directory);