mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
WHIP: Improve WHIP deletion by token verification. v5.0.164, v6.0.58 (#3595)
------ Co-authored-by: chundonglinlin <chundonglinlin@163.com>
This commit is contained in:
parent
fe230365ab
commit
b1d1c7abe5
9 changed files with 32 additions and 7 deletions
|
@ -157,14 +157,14 @@ srs_error_t SrsRawH264Stream::mux_sequence_header(string sps, string pps, string
|
|||
stream.write_1bytes(level_idc);
|
||||
// lengthSizeMinusOne, or NAL_unit_length, always use 4bytes size,
|
||||
// so we always set it to 0x03.
|
||||
stream.write_1bytes(0xfc | 0x03);
|
||||
stream.write_1bytes(uint8_t(0xfc | 0x03));
|
||||
}
|
||||
|
||||
// sps
|
||||
if (true) {
|
||||
// 5.3.4.2.1 Syntax, ISO_IEC_14496-15-AVC-format-2012.pdf, page 16
|
||||
// numOfSequenceParameterSets, always 1
|
||||
stream.write_1bytes(0xe0 | 0x01);
|
||||
stream.write_1bytes(uint8_t(0xe0 | 0x01));
|
||||
// sequenceParameterSetLength
|
||||
stream.write_2bytes((int16_t)sps.length());
|
||||
// sequenceParameterSetNALUnit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue