mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
refine code, use RTMP_FMT_TYPE0 instead
This commit is contained in:
parent
8697adacd9
commit
7a91826732
1 changed files with 1 additions and 1 deletions
2
trunk/src/core/srs_core_protocol.cpp
Normal file → Executable file
2
trunk/src/core/srs_core_protocol.cpp
Normal file → Executable file
|
@ -978,7 +978,7 @@ int SrsProtocol::read_message_header(SrsChunkStream* chunk, char fmt, int bh_siz
|
|||
|
||||
chunk->header.message_type = *p++;
|
||||
|
||||
if (fmt == 0) {
|
||||
if (fmt == RTMP_FMT_TYPE0) {
|
||||
pp = (char*)&chunk->header.stream_id;
|
||||
pp[0] = *p++;
|
||||
pp[1] = *p++;
|
||||
|
|
Loading…
Reference in a new issue