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:
parent
bc8828a7de
commit
974af0605b
1 changed files with 1 additions and 1 deletions
|
@ -2632,7 +2632,7 @@ int SrsUserControlPacket::decode(SrsStream* stream)
|
||||||
event_data = stream->read_4bytes();
|
event_data = stream->read_4bytes();
|
||||||
|
|
||||||
if (event_type == SrcPCUCSetBufferLength) {
|
if (event_type == SrcPCUCSetBufferLength) {
|
||||||
if (!stream->require(2)) {
|
if (!stream->require(4)) {
|
||||||
ret = ERROR_RTMP_MESSAGE_ENCODE;
|
ret = ERROR_RTMP_MESSAGE_ENCODE;
|
||||||
srs_error("decode user control packet failed. ret=%d", ret);
|
srs_error("decode user control packet failed. ret=%d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue