mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
only ignore the aud message.
This commit is contained in:
parent
61d5b78ae5
commit
bd7db5aed6
1 changed files with 2 additions and 7 deletions
|
@ -362,13 +362,8 @@ int SrsMpegtsOverUdp::on_ts_video(SrsTsMessage* msg, SrsStream* avs)
|
||||||
SrsAvcNaluType nal_unit_type = (SrsAvcNaluType)(frame[0] & 0x1f);
|
SrsAvcNaluType nal_unit_type = (SrsAvcNaluType)(frame[0] & 0x1f);
|
||||||
|
|
||||||
// ignore the nalu type sps(7), pps(8), aud(9)
|
// ignore the nalu type sps(7), pps(8), aud(9)
|
||||||
switch (nal_unit_type) {
|
if (nal_unit_type == SrsAvcNaluTypeAccessUnitDelimiter) {
|
||||||
case SrsAvcNaluTypeSPS:
|
continue;
|
||||||
case SrsAvcNaluTypePPS:
|
|
||||||
case SrsAvcNaluTypeAccessUnitDelimiter:
|
|
||||||
continue;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// for sps
|
// for sps
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue