mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-24 19:50:38 +08:00
解决帧率解析错误问题 (#3607)
有时解析H265的sps,帧率会出错,例如QgEBAWAAAAMAAAMAAAMAAAMAlqABQCAFof4qtO6JLuaAgAg9YADN/mAE 帧率会解析成3971
This commit is contained in:
parent
9a5fdd3dac
commit
15bc4c8767
@ -306,13 +306,12 @@ static int getBits(void *pvHandle, int iN)
|
|||||||
uint8_t u8Nbyte;
|
uint8_t u8Nbyte;
|
||||||
uint8_t u8Shift;
|
uint8_t u8Shift;
|
||||||
uint32_t u32Result = 0;
|
uint32_t u32Result = 0;
|
||||||
int iRet = 0;
|
uint32_t iRet = 0;
|
||||||
int iResoLen = 0;
|
int iResoLen = 0;
|
||||||
|
|
||||||
if(NULL == ptPtr)
|
if(NULL == ptPtr)
|
||||||
{
|
{
|
||||||
RPT(RPT_ERR, "NULL pointer");
|
RPT(RPT_ERR, "NULL pointer");
|
||||||
iRet = -1;
|
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,7 +323,6 @@ static int getBits(void *pvHandle, int iN)
|
|||||||
iResoLen = getBitsLeft(ptPtr);
|
iResoLen = getBitsLeft(ptPtr);
|
||||||
if(iResoLen < iN)
|
if(iResoLen < iN)
|
||||||
{
|
{
|
||||||
iRet = -1;
|
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user