Drop EMSG atoms before MOOV

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=186454715
This commit is contained in:
olly 2018-02-21 07:14:25 -08:00 committed by Oliver Woodman
parent fba2b46a8b
commit e3d4464635

View File

@ -549,7 +549,7 @@ public final class FragmentedMp4Extractor implements Extractor {
* Parses an emsg atom (defined in 23009-1).
*/
private void onEmsgLeafAtomRead(ParsableByteArray atom) {
if (emsgTrackOutputs.length == 0) {
if (emsgTrackOutputs == null || emsgTrackOutputs.length == 0) {
return;
}