mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
don't ignore aud
This commit is contained in:
parent
f080537887
commit
d919668b61
1 changed files with 5 additions and 2 deletions
|
@ -1407,9 +1407,12 @@ int srs_write_h264_raw_frame(Context* context,
|
|||
// ignore others.
|
||||
// 5bits, 7.3.1 NAL unit syntax,
|
||||
// H.264-AVC-ISO_IEC_14496-10.pdf, page 44.
|
||||
// 7: SPS, 8: PPS, 5: I Frame, 1: P Frame
|
||||
// 7: SPS, 8: PPS, 5: I Frame, 1: P Frame, 9: AUD
|
||||
SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f);
|
||||
if (nut != SrsAvcNaluTypeSPS && nut != SrsAvcNaluTypePPS && nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR) {
|
||||
if (nut != SrsAvcNaluTypeSPS && nut != SrsAvcNaluTypePPS
|
||||
&& nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR
|
||||
&& nut != SrsAvcNaluTypeAccessUnitDelimiter
|
||||
) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue