1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00

fix protocol decode PCUC packet bug, requires 4bytes

This commit is contained in:
winlin 2013-11-20 20:41:46 +08:00
parent bc8828a7de
commit 974af0605b

View file

@ -2632,7 +2632,7 @@ int SrsUserControlPacket::decode(SrsStream* stream)
event_data = stream->read_4bytes();
if (event_type == SrcPCUCSetBufferLength) {
if (!stream->require(2)) {
if (!stream->require(4)) {
ret = ERROR_RTMP_MESSAGE_ENCODE;
srs_error("decode user control packet failed. ret=%d", ret);
return ret;