mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 00:37:39 +08:00
完善兼容性
This commit is contained in:
parent
cfc7dc2126
commit
3c4d7498bc
@ -156,10 +156,10 @@ public:
|
||||
* @param aac_cfg aac两个字节的配置信息
|
||||
*/
|
||||
AACTrack(const string &aac_cfg){
|
||||
if(aac_cfg.size() != 2){
|
||||
throw std::invalid_argument("adts配置必须为2个字节");
|
||||
if(aac_cfg.size() < 2){
|
||||
throw std::invalid_argument("adts配置必须最少2个字节");
|
||||
}
|
||||
_cfg = aac_cfg;
|
||||
_cfg = aac_cfg.substr(0,2);
|
||||
onReady();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user