Merge branch '2.0release' into develop
This commit is contained in:
commit
5d5fa7204d
|
|
@ -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…
Reference in New Issue
Block a user