mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
解决ts误判的问题
This commit is contained in:
parent
069bde09c1
commit
ae45c24fa3
@ -186,7 +186,7 @@ void RtpProcess::onRtpDecode(const uint8_t *packet, int bytes, uint32_t, int fla
|
|||||||
|
|
||||||
if(!_decoder){
|
if(!_decoder){
|
||||||
//创建解码器
|
//创建解码器
|
||||||
if(bytes % 188 == 0 || packet[0] == 0x47){
|
if(bytes % 188 == 0 && packet[0] == 0x47){
|
||||||
//猜测是ts负载
|
//猜测是ts负载
|
||||||
_decoder = Decoder::createDecoder(Decoder::decoder_ts);
|
_decoder = Decoder::createDecoder(Decoder::decoder_ts);
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user