winlin

refine comments

@@ -1301,6 +1301,7 @@ int srs_write_h264_ipb_frame(Context* context, @@ -1301,6 +1301,7 @@ int srs_write_h264_ipb_frame(Context* context,
1301 // for I/P NALU, we send them in isolate frame, each NALU in a frame; 1301 // for I/P NALU, we send them in isolate frame, each NALU in a frame;
1302 // for other NALU, for example, AUD/SEI, we just ignore them, because 1302 // for other NALU, for example, AUD/SEI, we just ignore them, because
1303 // AUD used in annexb to split frame, while SEI generally we can ignore it. 1303 // AUD used in annexb to split frame, while SEI generally we can ignore it.
  1304 + // TODO: maybe we should group all NALUs split by AUD to a frame.
1304 SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f); 1305 SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f);
1305 if (nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR) { 1306 if (nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR) {
1306 return ret; 1307 return ret;