From 15bc4c8767b69ef2cab8966da56833f07d422888 Mon Sep 17 00:00:00 2001 From: chdahuzi Date: Sun, 9 Jun 2024 10:43:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=B8=A7=E7=8E=87=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=20(#3607)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 有时解析H265的sps,帧率会出错,例如QgEBAWAAAAMAAAMAAAMAAAMAlqABQCAFof4qtO6JLuaAgAg9YADN/mAE 帧率会解析成3971 --- ext-codec/SPSParser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext-codec/SPSParser.c b/ext-codec/SPSParser.c index a23c515c..de90a0d2 100644 --- a/ext-codec/SPSParser.c +++ b/ext-codec/SPSParser.c @@ -306,13 +306,12 @@ static int getBits(void *pvHandle, int iN) uint8_t u8Nbyte; uint8_t u8Shift; uint32_t u32Result = 0; - int iRet = 0; + uint32_t iRet = 0; int iResoLen = 0; if(NULL == ptPtr) { RPT(RPT_ERR, "NULL pointer"); - iRet = -1; goto exit; } @@ -324,7 +323,6 @@ static int getBits(void *pvHandle, int iN) iResoLen = getBitsLeft(ptPtr); if(iResoLen < iN) { - iRet = -1; goto exit; }