docs: correct strict AMF array comment

This commit is contained in:
YuLi
2026-07-24 15:45:41 -07:00
parent 984d4c7faf
commit 628844a721

View File

@@ -679,7 +679,7 @@ AMFValue AMFDecoder::load_ecma() {
} }
AMFValue AMFDecoder::load_arr() { AMFValue AMFDecoder::load_arr() {
DepthGuard depth_guard(*this); DepthGuard depth_guard(*this);
/* ECMA array is the same as object, with 4 extra zero bytes */ /* Strict array is a count-prefixed list of AMF values. */
AMFValue object(AMF_STRICT_ARRAY); AMFValue object(AMF_STRICT_ARRAY);
if (pop_front() != AMF0_STRICT_ARRAY) { if (pop_front() != AMF0_STRICT_ARRAY) {
throw std::runtime_error("Expected an STRICT array"); throw std::runtime_error("Expected an STRICT array");