Commit 13eb9c59 by Marksss

fix ArrayIndexOutOfBoundsException when playing flv

parent 7fe9ecc1
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment