mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
refine comments
This commit is contained in:
parent
0015b303a6
commit
49b880d4ce
1 changed files with 1 additions and 0 deletions
|
@ -1301,6 +1301,7 @@ int srs_write_h264_ipb_frame(Context* context,
|
||||||
// for I/P NALU, we send them in isolate frame, each NALU in a frame;
|
// for I/P NALU, we send them in isolate frame, each NALU in a frame;
|
||||||
// for other NALU, for example, AUD/SEI, we just ignore them, because
|
// for other NALU, for example, AUD/SEI, we just ignore them, because
|
||||||
// AUD used in annexb to split frame, while SEI generally we can ignore it.
|
// AUD used in annexb to split frame, while SEI generally we can ignore it.
|
||||||
|
// TODO: maybe we should group all NALUs split by AUD to a frame.
|
||||||
SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f);
|
SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f);
|
||||||
if (nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR) {
|
if (nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR) {
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue