Commit c8fa51c7 by shenxl

length->bytesLeft

parent 13eb9c59
......@@ -89,7 +89,7 @@ import java.util.Map;
// We're only interested in metadata.
return false;
}
if (data.getData().length <= data.getPosition()) {
if (data.bytesLeft() == 0) {
return false;
}
int type = readAmfType(data);
......
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