From 2897752d2312e89a949228f22d9921d890fb38e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BE=E9=87=8C=E6=9C=AA=E5=A4=AE?= Date: Thu, 24 Nov 2022 02:56:27 +0000 Subject: [PATCH] =?UTF-8?q?update=20libyangrtc2/src/yangavutil/YangMeta.cp?= =?UTF-8?q?p.=20=E4=BF=AE=E5=A4=8Dpps=E9=95=BF=E5=BA=A6=EF=BC=8Cpps?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9=E5=AF=BC=E8=87=B4avcodec=5Fsend=5Fpacket=20A?= =?UTF-8?q?VERROR=5FINVALIDDATA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 百里未央 --- libyangrtc2/src/yangavutil/YangMeta.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libyangrtc2/src/yangavutil/YangMeta.cpp b/libyangrtc2/src/yangavutil/YangMeta.cpp index 0c79e12..55e3e5a 100644 --- a/libyangrtc2/src/yangavutil/YangMeta.cpp +++ b/libyangrtc2/src/yangavutil/YangMeta.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -83,7 +83,7 @@ void yang_getConfig_Meta_H264(YangSample* psps, YangSample* ppps,uint8_t *config //type_codec1 + avc_type + composition time + fix header + count of sps + len of sps + sps + count of pps + len of pps + pps // int32_t nb_payload = 1 + 1 + 3 + 5 + 1 + 2 + sps->size + 1 + 2 + pps->size; int32_t spsLen=psps->nb; - int32_t ppsLen=psps->nb; + int32_t ppsLen=ppps->nb; uint8_t* sps=(uint8_t*)psps->bytes; uint8_t* pps=(uint8_t*)ppps->bytes; configBuf[0] = 0x17; -- Gitee