From 81de600d4c8be9de7800cf6c91bac7db77ad56f9 Mon Sep 17 00:00:00 2001 From: xufuji456 Date: Tue, 20 Sep 2022 11:27:59 +0800 Subject: [PATCH] Feature: change rtmp channel of video --- Live/src/main/cpp/VideoStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Live/src/main/cpp/VideoStream.cpp b/Live/src/main/cpp/VideoStream.cpp index 2310979..1eb572c 100644 --- a/Live/src/main/cpp/VideoStream.cpp +++ b/Live/src/main/cpp/VideoStream.cpp @@ -175,7 +175,7 @@ void VideoStream::sendSpsPps(uint8_t *sps, uint8_t *pps, int sps_len, int pps_le //video packet->m_packetType = RTMP_PACKET_TYPE_VIDEO; packet->m_nBodySize = bodySize; - packet->m_nChannel = 10; + packet->m_nChannel = 0x10; //sps and pps no timestamp packet->m_nTimeStamp = 0; packet->m_hasAbsTimestamp = 0;