mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Detect B frame in avc stream. Fix compiler error with verbose
This commit is contained in:
parent
e2233027b8
commit
d1d16d490e
6 changed files with 71 additions and 14 deletions
|
@ -398,6 +398,24 @@ enum SrsAvcNaluType
|
|||
};
|
||||
std::string srs_avc_nalu2str(SrsAvcNaluType nalu_type);
|
||||
|
||||
/**
|
||||
* Table 7-6 – Name association to slice_type
|
||||
* ISO_IEC_14496-10-AVC-2012.pdf, page 105.
|
||||
*/
|
||||
enum SrsAvcSliceType
|
||||
{
|
||||
SrsAvcSliceTypeP = 0,
|
||||
SrsAvcSliceTypeB = 1,
|
||||
SrsAvcSliceTypeI = 2,
|
||||
SrsAvcSliceTypeSP = 3,
|
||||
SrsAvcSliceTypeSI = 4,
|
||||
SrsAvcSliceTypeP1 = 5,
|
||||
SrsAvcSliceTypeB1 = 6,
|
||||
SrsAvcSliceTypeI1 = 7,
|
||||
SrsAvcSliceTypeSP1 = 8,
|
||||
SrsAvcSliceTypeSI1 = 9,
|
||||
};
|
||||
|
||||
/**
|
||||
* the avc payload format, must be ibmf or annexb format.
|
||||
* we guess by annexb first, then ibmf for the first time,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue