mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the unicode to ascii
This commit is contained in:
parent
7fc1cda392
commit
77ee2400df
10 changed files with 39 additions and 39 deletions
|
@ -276,7 +276,7 @@ enum SrsCodecAudioSoundType
|
|||
};
|
||||
|
||||
/**
|
||||
* Table 7-1 – NAL unit type codes, syntax element categories, and NAL unit type classes
|
||||
* Table 7-1 - NAL unit type codes, syntax element categories, and NAL unit type classes
|
||||
* H.264-AVC-ISO_IEC_14496-10-2012.pdf, page 83.
|
||||
*/
|
||||
enum SrsAvcNaluType
|
||||
|
@ -448,7 +448,7 @@ enum SrsAacObjectType
|
|||
{
|
||||
SrsAacObjectTypeReserved = 0,
|
||||
|
||||
// Table 1.1 – Audio Object Type definition
|
||||
// Table 1.1 - Audio Object Type definition
|
||||
// @see @see aac-mp4a-format-ISO_IEC_14496-3+2001.pdf, page 23
|
||||
SrsAacObjectTypeAacMain = 1,
|
||||
SrsAacObjectTypeAacLC = 2,
|
||||
|
|
|
@ -2898,7 +2898,7 @@ int SrsTsCache::do_cache_avc(SrsAvcAacCodec* codec, SrsCodecSample* sample)
|
|||
* xxxxxxx // data bytes.
|
||||
*
|
||||
* nal_unit_type specifies the type of RBSP data structure contained in the NAL unit as specified in Table 7-1.
|
||||
* Table 7-1 – NAL unit type codes, syntax element categories, and NAL unit type classes
|
||||
* Table 7-1 - NAL unit type codes, syntax element categories, and NAL unit type classes
|
||||
* H.264-AVC-ISO_IEC_14496-10-2012.pdf, page 83.
|
||||
* 1, Coded slice of a non-IDR picture slice_layer_without_partitioning_rbsp( )
|
||||
* 2, Coded slice data partition A slice_data_partition_a_layer_rbsp( )
|
||||
|
|
|
@ -182,7 +182,7 @@ struct SrsTsChannel
|
|||
|
||||
/**
|
||||
* the stream_id of PES payload of ts packet.
|
||||
* Table 2-18 – Stream_id assignments, hls-mpeg-ts-iso13818-1.pdf, page 52.
|
||||
* Table 2-18 - Stream_id assignments, hls-mpeg-ts-iso13818-1.pdf, page 52.
|
||||
*/
|
||||
enum SrsTsPESStreamId
|
||||
{
|
||||
|
@ -236,7 +236,7 @@ enum SrsTsPESStreamId
|
|||
// FlexMux_stream
|
||||
SrsTsPESStreamIdFlexMuxStream = 0xfb, // 0b11111011
|
||||
// reserved data stream
|
||||
// 1111 1100 … 1111 1110
|
||||
// 1111 1100 ... 1111 1110
|
||||
// program_stream_directory
|
||||
SrsTsPESStreamIdProgramStreamDirectory = 0xff, // 0b11111111
|
||||
};
|
||||
|
@ -1208,7 +1208,7 @@ public:
|
|||
// NB
|
||||
/**
|
||||
* PES_packet_data_bytes shall be contiguous bytes of data from the elementary stream
|
||||
* indicated by the packet’s stream_id or PID. When the elementary stream data conforms to ITU-T
|
||||
* indicated by the packet's stream_id or PID. When the elementary stream data conforms to ITU-T
|
||||
* Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 13818-3, the PES_packet_data_bytes shall be byte aligned to the bytes of this
|
||||
* Recommendation | International Standard. The byte-order of the elementary stream shall be preserved. The number of
|
||||
* PES_packet_data_bytes, N, is specified by the PES_packet_length field. N shall be equal to the value indicated in the
|
||||
|
|
|
@ -61,7 +61,7 @@ int srs_avc_nalu_read_uev(SrsBitStream* stream, int32_t& v)
|
|||
// for( b = 0; !b; leadingZeroBits++ )
|
||||
// b = read_bits( 1 )
|
||||
// The variable codeNum is then assigned as follows:
|
||||
// codeNum = (2<<leadingZeroBits) – 1 + read_bits( leadingZeroBits )
|
||||
// codeNum = (2<<leadingZeroBits) - 1 + read_bits( leadingZeroBits )
|
||||
int leadingZeroBits = -1;
|
||||
for (int8_t b = 0; !b && !stream->empty(); leadingZeroBits++) {
|
||||
b = stream->read_bit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue