mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08: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
@ -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…
x
Reference in New Issue
Block a user