From ae45c24fa392ab542473b883f3091b654572cbfc Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 7 Mar 2020 16:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3ts=E8=AF=AF=E5=88=A4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/RtpProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtp/RtpProcess.cpp b/src/Rtp/RtpProcess.cpp index 32986f98..ad25d870 100644 --- a/src/Rtp/RtpProcess.cpp +++ b/src/Rtp/RtpProcess.cpp @@ -186,7 +186,7 @@ void RtpProcess::onRtpDecode(const uint8_t *packet, int bytes, uint32_t, int fla if(!_decoder){ //创建解码器 - if(bytes % 188 == 0 || packet[0] == 0x47){ + if(bytes % 188 == 0 && packet[0] == 0x47){ //猜测是ts负载 _decoder = Decoder::createDecoder(Decoder::decoder_ts); }else{