winlin

don't ignore aud

@@ -1407,9 +1407,12 @@ int srs_write_h264_raw_frame(Context* context, @@ -1407,9 +1407,12 @@ int srs_write_h264_raw_frame(Context* context,
1407 // ignore others. 1407 // ignore others.
1408 // 5bits, 7.3.1 NAL unit syntax, 1408 // 5bits, 7.3.1 NAL unit syntax,
1409 // H.264-AVC-ISO_IEC_14496-10.pdf, page 44. 1409 // H.264-AVC-ISO_IEC_14496-10.pdf, page 44.
1410 - // 7: SPS, 8: PPS, 5: I Frame, 1: P Frame 1410 + // 7: SPS, 8: PPS, 5: I Frame, 1: P Frame, 9: AUD
1411 SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f); 1411 SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f);
1412 - if (nut != SrsAvcNaluTypeSPS && nut != SrsAvcNaluTypePPS && nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR) { 1412 + if (nut != SrsAvcNaluTypeSPS && nut != SrsAvcNaluTypePPS
  1413 + && nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR
  1414 + && nut != SrsAvcNaluTypeAccessUnitDelimiter
  1415 + ) {
1413 return ret; 1416 return ret;
1414 } 1417 }
1415 1418