Fix FLV parser to skip metadata we're not interested in

Issue: #2634

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=151816597
This commit is contained in:
olly 2017-03-31 06:18:13 -07:00 committed by Oliver Woodman
parent f7fff0d583
commit 77e6d75bdd

View File

@ -80,8 +80,8 @@ import java.util.Map;
} }
int type = readAmfType(data); int type = readAmfType(data);
if (type != AMF_TYPE_ECMA_ARRAY) { if (type != AMF_TYPE_ECMA_ARRAY) {
// Should never happen. // We're not interested in this metadata.
throw new ParserException(); return;
} }
// Set the duration to the value contained in the metadata, if present. // Set the duration to the value contained in the metadata, if present.
Map<String, Object> metadata = readAmfEcmaArray(data); Map<String, Object> metadata = readAmfEcmaArray(data);