增加rtmp/rtsp对音频G711A,G711U的支持

This commit is contained in:
baiyfcu
2020-04-17 17:47:10 +08:00
parent 5fcc22bab7
commit 40afa204d5
13 changed files with 123 additions and 16 deletions

View File

@@ -57,7 +57,7 @@ public:
}
CodecId getCodecId() const override{
return CodecAAC;
return _codecId;
}
bool keyFrame() const override {
@@ -68,6 +68,7 @@ public:
return false;
}
public:
CodecId _codecId = CodecG711A;
unsigned int frameLength; // 一个帧的长度包括 raw data block
unsigned char buffer[2 * 1024 + 7];
uint32_t timeStamp;