mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch '2.0release' into develop
This commit is contained in:
commit
5d5fa7204d
1 changed files with 5 additions and 2 deletions
|
@ -1433,9 +1433,12 @@ int srs_write_h264_raw_frame(Context* context,
|
||||||
// ignore others.
|
// ignore others.
|
||||||
// 5bits, 7.3.1 NAL unit syntax,
|
// 5bits, 7.3.1 NAL unit syntax,
|
||||||
// H.264-AVC-ISO_IEC_14496-10.pdf, page 44.
|
// 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);
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue