| 843 | } |
| 844 | |
| 845 | static bool ReadAMFArrayBody(AMFArray* arr, AMFInputStream* stream) { |
| 846 | uint32_t count = 0; |
| 847 | if (stream->cut_u32(&count) != 4u) { |
| 848 | LOG(ERROR) << "stream is not long enough"; |
| 849 | return false; |
| 850 | } |
| 851 | for (uint32_t i = 0; i < count; ++i) { |
| 852 | if (!ReadAMFArrayItem(stream, arr)) { |
| 853 | return false; |
| 854 | } |
| 855 | } |
| 856 | return true; |
| 857 | } |
| 858 | |
| 859 | bool ReadAMFArray(AMFArray* arr, AMFInputStream* stream) { |
| 860 | uint8_t marker; |
no test coverage detected