From 47cb4b8edc171c41b8d784e3fddedcb27d228db2 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 6 Sep 2019 23:23:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84rtp=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/H265Rtp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Extension/H265Rtp.cpp b/src/Extension/H265Rtp.cpp index 0a345e5f..6ac9e7e0 100644 --- a/src/Extension/H265Rtp.cpp +++ b/src/Extension/H265Rtp.cpp @@ -180,7 +180,7 @@ void H265RtpEncoder::inputFrame(const Frame::Ptr &frame) { //超过MTU,按照FU方式打包 if (iLen > maxSize) { //获取帧头数据,1byte - unsigned char s_e_type; + unsigned char s_e_flags; bool bFirst = true; bool mark = false; int nOffset = 2; @@ -189,13 +189,13 @@ void H265RtpEncoder::inputFrame(const Frame::Ptr &frame) { maxSize = iLen - nOffset; mark = true; //FU end - s_e_type = (1 << 6) | naluType; + s_e_flags = (1 << 6) | naluType; } else if (bFirst) { //FU start - s_e_type = (1 << 7) | naluType; + s_e_flags = (1 << 7) | naluType; } else { //FU mid - s_e_type = naluType; + s_e_flags = naluType; } { @@ -208,7 +208,7 @@ void H265RtpEncoder::inputFrame(const Frame::Ptr &frame) { //FU 第2个字节貌似固定为1 payload[1] = 1; //FU 第3个字节 - payload[2] = s_e_type; + payload[2] = s_e_flags; //H265 数据 memcpy(payload + 3,pcData + nOffset, maxSize); //输入到rtp环形缓存