mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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);
|
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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue