mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Add member of adaptation_field and fix pos not add after memcpy. (#2066)
This commit is contained in:
parent
cf3129220d
commit
1db155fa2f
2 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,7 @@ int ts_demux::decode_unit(unsigned char* data_p, std::string key_path, TS_DATA_C
|
|||
field_p->_transport_private_data_length = data_p[pos];
|
||||
pos++;
|
||||
memcpy(field_p->_private_data_byte, data_p + pos, field_p->_transport_private_data_length);
|
||||
pos += field_p->_transport_private_data_length;
|
||||
}
|
||||
if( field_p->_adaptation_field_extension_flag == 1 ) {
|
||||
//adaptation_field_extension_length 8 uimsbf
|
||||
|
|
|
@ -125,6 +125,7 @@ public:
|
|||
unsigned short _DTS_next_AU2;//15bit
|
||||
unsigned char _marker_bit2;//1bit
|
||||
unsigned short _DTS_next_AU3;//15bit
|
||||
unsigned char _marker_bit3;//1bit
|
||||
};
|
||||
|
||||
class ts_header {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue