From f19ec94e4b5aace5dd2b492509e0101ad62851e8 Mon Sep 17 00:00:00 2001 From: liangzhuohua Date: Wed, 19 Jun 2024 17:51:18 +0800 Subject: [PATCH] add support for auto judge H264 or h265 --- src/wifi/WFBReceiver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/WFBReceiver.cpp b/src/wifi/WFBReceiver.cpp index ff9fc39..a1cb3a5 100644 --- a/src/wifi/WFBReceiver.cpp +++ b/src/wifi/WFBReceiver.cpp @@ -177,7 +177,7 @@ void WFBReceiver::handle80211Frame(const Packet &packet) { static unsigned long long sendFd = INVALID_SOCKET; static volatile bool playing = false; -#define GET_H265_NAL_UNIT_TYPE(buffer_ptr) ((buffer_ptr[0] & 0x7E) >> 1) +#define GET_H265_NAL_UNIT_TYPE(buffer_ptr) ((buffer_ptr[2] & 0x1F) >> 1) enum HEVCNALUnitType { HEVC_NAL_TRAIL_N = 0, HEVC_NAL_TRAIL_R = 1,