mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
librtmp: refine comment for NALU process.
This commit is contained in:
parent
4c6c2c28b8
commit
0015b303a6
2 changed files with 6 additions and 5 deletions
|
@ -181,11 +181,11 @@ int main(int argc, char** argv)
|
|||
|
||||
// 5bits, 7.3.1 NAL unit syntax,
|
||||
// H.264-AVC-ISO_IEC_14496-10.pdf, page 44.
|
||||
// 7: SPS, 8: PPS, 5: I Frame, 1: P Frame, 9: AUD
|
||||
// 7: SPS, 8: PPS, 5: I Frame, 1: P Frame, 9: AUD, 6: SEI
|
||||
u_int8_t nut = (char)data[nb_start_code] & 0x1f;
|
||||
srs_human_trace("sent packet: type=%s, time=%d, size=%d, fps=%.2f, b[%d]=%#x(%s)",
|
||||
srs_human_flv_tag_type2string(SRS_RTMP_TYPE_VIDEO), dts, size, fps, nb_start_code, (char)data[nb_start_code],
|
||||
(nut == 7? "SPS":(nut == 8? "PPS":(nut == 5? "I":(nut == 1? "P":(nut == 9? "AUD":"Unknown"))))));
|
||||
(nut == 7? "SPS":(nut == 8? "PPS":(nut == 5? "I":(nut == 1? "P":(nut == 9? "AUD":(nut == 6? "SEI":"Unknown")))))));
|
||||
|
||||
// @remark, when use encode device, it not need to sleep.
|
||||
if (count == 10) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue