avoid npe in MP4Parser
@@ -200,6 +200,7 @@ public class MP4Parser extends AbstractParser {
// Get the sample information
SampleTableBox samples = track.getSampleTableBox();
+ if (samples != null) {
SampleDescriptionBox sampleDesc = samples.getSampleDescriptionBox();
if (sampleDesc != null) {
// Look for the first Audio Sample, if present
@@ -213,6 +214,7 @@ public class MP4Parser extends AbstractParser {
}
}
}
+ }
// Get metadata from the User Data Box
UserDataBox userData = getOrNull(moov, UserDataBox.class);
