mirror of
https://github.com/samsonjs/media.git
synced 2026-04-19 13:35:47 +00:00
fix ArrayIndexOutOfBoundsException when playing flv
This commit is contained in:
parent
7fe9ecc1c5
commit
13eb9c5908
1 changed files with 3 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ import java.util.Map;
|
|||
// We're only interested in metadata.
|
||||
return false;
|
||||
}
|
||||
if (data.getData().length <= data.getPosition()) {
|
||||
return false;
|
||||
}
|
||||
int type = readAmfType(data);
|
||||
if (type != AMF_TYPE_ECMA_ARRAY) {
|
||||
// We're not interested in this metadata.
|
||||
|
|
|
|||
Loading…
Reference in a new issue