mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
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:
parent
f7fff0d583
commit
77e6d75bdd
1 changed files with 2 additions and 2 deletions
|
|
@ -80,8 +80,8 @@ import java.util.Map;
|
|||
}
|
||||
int type = readAmfType(data);
|
||||
if (type != AMF_TYPE_ECMA_ARRAY) {
|
||||
// Should never happen.
|
||||
throw new ParserException();
|
||||
// We're not interested in this metadata.
|
||||
return;
|
||||
}
|
||||
// Set the duration to the value contained in the metadata, if present.
|
||||
Map<String, Object> metadata = readAmfEcmaArray(data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue