Skip to content

Commit 86d04a7

Browse files
lam2003winlinvip
authored andcommitted
Fix #1580, fix cid range problem. 3.0.102
1 parent 9ac8585 commit 86d04a7

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ For previous versions, please read:
146146

147147
## V3 changes
148148

149+
* v3.0, 2020-01-19, For [#1580][bug #1580], fix cid range problem. 3.0.102
149150
* v3.0, 2020-01-19, For [#1070][bug #1070], define FLV CodecID for [AV1][bug #1070] and [opus][bug #307]. 3.0.101
150151
* v3.0, 2020-01-16, For [#1575][bug #1575], correct RTMP redirect as tcUrl, add redirect2 as RTMP URL. 3.0.100
151152
* v3.0, 2020-01-15, For [#1509][bug #1509], decrease the fast vector init size from 64KB to 64B. 3.0.99
@@ -1600,6 +1601,7 @@ Winlin
16001601
[bug #1575]: https://github.com/ossrs/srs/issues/1575
16011602
[bug #307]: https://github.com/ossrs/srs/issues/307
16021603
[bug #1070]: https://github.com/ossrs/srs/issues/1070
1604+
[bug #1580]: https://github.com/ossrs/srs/issues/1580
16031605
[bug #xxxxxxxxxxxxx]: https://github.com/ossrs/srs/issues/xxxxxxxxxxxxx
16041606

16051607
[exo #828]: https://github.com/google/ExoPlayer/pull/828

trunk/src/core/srs_core.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// The version config.
2828
#define VERSION_MAJOR 3
2929
#define VERSION_MINOR 0
30-
#define VERSION_REVISION 101
30+
#define VERSION_REVISION 102
3131

3232
// The macros generated by configure script.
3333
#include <srs_auto_headers.hpp>

trunk/src/kernel/srs_kernel_flv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ bool SrsSharedPtrMessage::check(int stream_id)
291291

292292
// we donot use the complex basic header,
293293
// ensure the basic header is 1bytes.
294-
if (ptr->header.perfer_cid < 2) {
294+
if (ptr->header.perfer_cid < 2 || ptr->header.perfer_cid > 63) {
295295
srs_info("change the chunk_id=%d to default=%d", ptr->header.perfer_cid, RTMP_CID_ProtocolControl);
296296
ptr->header.perfer_cid = RTMP_CID_ProtocolControl;
297297
}

0 commit comments

Comments
 (0)