winlin

only ignore the aud message.

@@ -362,13 +362,8 @@ int SrsMpegtsOverUdp::on_ts_video(SrsTsMessage* msg, SrsStream* avs) @@ -362,13 +362,8 @@ int SrsMpegtsOverUdp::on_ts_video(SrsTsMessage* msg, SrsStream* avs)
362 SrsAvcNaluType nal_unit_type = (SrsAvcNaluType)(frame[0] & 0x1f); 362 SrsAvcNaluType nal_unit_type = (SrsAvcNaluType)(frame[0] & 0x1f);
363 363
364 // ignore the nalu type sps(7), pps(8), aud(9) 364 // ignore the nalu type sps(7), pps(8), aud(9)
365 - switch (nal_unit_type) {  
366 - case SrsAvcNaluTypeSPS:  
367 - case SrsAvcNaluTypePPS:  
368 - case SrsAvcNaluTypeAccessUnitDelimiter:  
369 - continue;  
370 - default:  
371 - break; 365 + if (nal_unit_type == SrsAvcNaluTypeAccessUnitDelimiter) {
  366 + continue;
372 } 367 }
373 368
374 // for sps 369 // for sps