| 352 | } |
| 353 | |
| 354 | bool ReadAMFUndefined(AMFInputStream* stream) { |
| 355 | uint8_t marker; |
| 356 | if (stream->cut_u8(&marker) != 1u) { |
| 357 | LOG(ERROR) << "stream is not long enough"; |
| 358 | return false; |
| 359 | } |
| 360 | if ((AMFMarker)marker == AMF_MARKER_UNDEFINED) { |
| 361 | return true; |
| 362 | } |
| 363 | LOG(ERROR) << "Expected undefined, actually " << marker2str(marker); |
| 364 | return false; |
| 365 | } |
| 366 | |
| 367 | bool ReadAMFUnsupported(AMFInputStream* stream) { |
| 368 | uint8_t marker; |
nothing calls this directly
no test coverage detected