length->bytesLeft

This commit is contained in:
shenxl 2021-12-07 10:03:00 +08:00
parent 13eb9c5908
commit c8fa51c7c8

View File

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