解决帧率解析错误问题 (#3607)

有时解析H265的sps,帧率会出错,例如QgEBAWAAAAMAAAMAAAMAAAMAlqABQCAFof4qtO6JLuaAgAg9YADN/mAE
帧率会解析成3971
This commit is contained in:
chdahuzi 2024-06-09 10:43:32 +08:00 committed by GitHub
parent 9a5fdd3dac
commit 15bc4c8767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}