mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the h264 parser, one ts message should parsed to one rtmp/flv message.
This commit is contained in:
parent
4329366c08
commit
61d5b78ae5
8 changed files with 71 additions and 43 deletions
|
@ -46,7 +46,7 @@ using namespace std;
|
|||
// @see SRS_SYS_TIME_RESOLUTION_MS_TIMES
|
||||
#define SYS_TIME_RESOLUTION_US 300*1000
|
||||
|
||||
int srs_avc_nalu_read_uev(SrsBitStream* stream, int64_t& v)
|
||||
int srs_avc_nalu_read_uev(SrsBitStream* stream, int32_t& v)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
|
@ -67,7 +67,7 @@ int srs_avc_nalu_read_uev(SrsBitStream* stream, int64_t& v)
|
|||
b = stream->read_bit();
|
||||
}
|
||||
|
||||
if (leadingZeroBits >= 64) {
|
||||
if (leadingZeroBits >= 31) {
|
||||
return ERROR_AVC_NALU_UEV;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue