1
0
Fork 0
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:
winlin 2015-05-09 23:12:12 +08:00
parent 7fc1cda392
commit 77ee2400df
10 changed files with 39 additions and 39 deletions

View file

@ -358,8 +358,8 @@ int SrsRawAacStream::adts_demux(SrsStream* stream, char** pframe, int* pnb_frame
int8_t protection_absent = pav & 0x01;
/**
* ID: MPEG identifier, set to 1 if the audio data in the ADTS stream are MPEG-2 AAC (See ISO/IEC 13818-7)
* and set to 0 if the audio data are MPEG-4. See also ISO/IEC 11172-3, subclause 2.4.2.3.
* ID: MPEG identifier, set to '1' if the audio data in the ADTS stream are MPEG-2 AAC (See ISO/IEC 13818-7)
* and set to '0' if the audio data are MPEG-4. See also ISO/IEC 11172-3, subclause 2.4.2.3.
*/
if (id != 0x01) {
srs_info("adts: id must be 1(aac), actual 0(mp4a). ret=%d", ret);

View file

@ -1445,7 +1445,7 @@ int SrsProtocol::recv_interlaced_message(SrsCommonMessage** pmsg)
* Header field may be 1, 2, or 3 bytes, depending on the chunk stream
* ID.
*
* The bits 05 (least significant) in the chunk basic header represent
* The bits 0-5 (least significant) in the chunk basic header represent
* the chunk stream ID.
*
* Chunk stream IDs 2-63 can be encoded in the 1-byte version of this
@ -1651,14 +1651,14 @@ int SrsProtocol::read_message_header(SrsChunkStream* chunk, char fmt)
// timestamp: 3 bytes
// If the timestamp is greater than or equal to 16777215
// (hexadecimal 0x00ffffff), this value MUST be 16777215, and the
// extended timestamp header MUST be present. Otherwise, this value
// 'extended timestamp header' MUST be present. Otherwise, this value
// SHOULD be the entire timestamp.
//
// fmt: 1 or 2
// timestamp delta: 3 bytes
// If the delta is greater than or equal to 16777215 (hexadecimal
// 0x00ffffff), this value MUST be 16777215, and the extended
// timestamp header MUST be present. Otherwise, this value SHOULD be
// 0x00ffffff), this value MUST be 16777215, and the 'extended
// timestamp header' MUST be present. Otherwise, this value SHOULD be
// the entire delta.
chunk->extended_timestamp = (chunk->header.timestamp_delta >= RTMP_EXTENDED_TIMESTAMP);
if (!chunk->extended_timestamp) {

View file

@ -725,7 +725,7 @@ class SrsConnectAppPacket : public SrsPacket
{
public:
/**
* Name of the command. Set to connect.
* Name of the command. Set to "connect".
*/
std::string command_name;
/**
@ -778,8 +778,8 @@ public:
*/
SrsAmf0Object* props;
/**
* Name-value pairs that describe the response from|the server. code,
* level, description are names of few among such information.
* Name-value pairs that describe the response from|the server. 'code',
* 'level', 'description' are names of few among such information.
* @remark, never be NULL.
*/
SrsAmf0Object* info;
@ -887,7 +887,7 @@ class SrsCreateStreamPacket : public SrsPacket
{
public:
/**
* Name of the command. Set to createStream.
* Name of the command. Set to "createStream".
*/
std::string command_name;
/**
@ -958,7 +958,7 @@ class SrsCloseStreamPacket : public SrsPacket
{
public:
/**
* Name of the command, set to closeStream.
* Name of the command, set to "closeStream".
*/
std::string command_name;
/**
@ -1069,7 +1069,7 @@ class SrsPublishPacket : public SrsPacket
{
public:
/**
* Name of the command, set to publish.
* Name of the command, set to "publish".
*/
std::string command_name;
/**
@ -1086,7 +1086,7 @@ public:
*/
std::string stream_name;
/**
* Type of publishing. Set to live, record, or append.
* Type of publishing. Set to "live", "record", or "append".
* record: The stream is published and the data is recorded to a new file.The file
* is stored on the server in a subdirectory within the directory that
* contains the server application. If the file already exists, it is
@ -1122,7 +1122,7 @@ class SrsPausePacket : public SrsPacket
{
public:
/**
* Name of the command, set to pause.
* Name of the command, set to "pause".
*/
std::string command_name;
/**
@ -1161,7 +1161,7 @@ class SrsPlayPacket : public SrsPacket
{
public:
/**
* Name of the command. Set to play.
* Name of the command. Set to "play".
*/
std::string command_name;
/**
@ -1325,7 +1325,7 @@ public:
SrsAmf0Any* args; // null
/**
* Name-value pairs that describe the response from the server.
* code,level, description are names of few among such information.
* 'code','level', 'description' are names of few among such information.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object* data;
@ -1367,7 +1367,7 @@ public:
SrsAmf0Any* args; // null
/**
* Name-value pairs that describe the response from the server.
* code,level, description are names of few among such information.
* 'code','level', 'description' are names of few among such information.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object* data;
@ -1425,7 +1425,7 @@ public:
std::string command_name;
/**
* Name-value pairs that describe the response from the server.
* code, are names of few among such information.
* 'code', are names of few among such information.
* @remark, never be NULL, an AMF0 object instance.
*/
SrsAmf0Object* data;
@ -1707,7 +1707,7 @@ enum SrcPCUCEventType
* +------------------------------+-------------------------
* | Event Type ( 2- bytes ) | Event Data
* +------------------------------+-------------------------
* Figure 5 Pay load for the User Control Message.
* Figure 5 Pay load for the 'User Control Message'.
*/
class SrsUserControlPacket : public SrsPacket
{