| 365 | } |
| 366 | |
| 367 | bool ReadAMFUnsupported(AMFInputStream* stream) { |
| 368 | uint8_t marker; |
| 369 | if (stream->cut_u8(&marker) != 1u) { |
| 370 | LOG(ERROR) << "stream is not long enough"; |
| 371 | return false; |
| 372 | } |
| 373 | if ((AMFMarker)marker == AMF_MARKER_UNSUPPORTED) { |
| 374 | return true; |
| 375 | } |
| 376 | LOG(ERROR) << "Expected unsupported, actually " << marker2str(marker); |
| 377 | return false; |
| 378 | } |
| 379 | |
| 380 | static bool ReadAMFObjectBody(google::protobuf::Message* message, |
| 381 | AMFInputStream* stream); |
nothing calls this directly
no test coverage detected