1
0
Fork 0
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:
winlin 2014-02-16 10:22:52 +08:00
parent 8697adacd9
commit 7a91826732

2
trunk/src/core/srs_core_protocol.cpp Normal file → Executable file
View 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++;