From 6ffbcbfde5fb8eba51d7afcc29e2d3e424d83fb0 Mon Sep 17 00:00:00 2001 From: samosirl <39912893+samosirl@users.noreply.github.com> Date: Sat, 12 Nov 2022 21:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Ehome=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=20(#2063)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/RtpSplitter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Rtp/RtpSplitter.cpp b/src/Rtp/RtpSplitter.cpp index 636340a2..594d689b 100644 --- a/src/Rtp/RtpSplitter.cpp +++ b/src/Rtp/RtpSplitter.cpp @@ -38,7 +38,11 @@ static bool isEhome(const char *data, size_t len){ if (len < 4) { return false; } - return memcmp(data, kEHOME_MAGIC, sizeof(kEHOME_MAGIC) - 1) == 0; + if((data[0] == 0x01) && (data[1] == 0x00) && (data[2] >=0x01)){ + return true; + } + return false; + //return memcmp(data, kEHOME_MAGIC, sizeof(kEHOME_MAGIC) - 1) == 0; } const char *RtpSplitter::onSearchPacketTail(const char *data, size_t len) {