Skip to content

Commit

Permalink
add support for auto judge H264 or h265
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzhuohua committed Jun 19, 2024
1 parent 6d45ac1 commit f19ec94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wifi/WFBReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f19ec94

Please sign in to comment.