正在显示
1 个修改的文件
包含
12 行增加
和
11 行删除
| @@ -2972,18 +2972,19 @@ int SrsTsCache::do_cache_avc(SrsAvcAacCodec* codec, SrsCodecSample* sample) | @@ -2972,18 +2972,19 @@ int SrsTsCache::do_cache_avc(SrsAvcAacCodec* codec, SrsCodecSample* sample) | ||
| 2972 | * 19, Coded slice of an auxiliary coded picture without partitioning slice_layer_without_partitioning_rbsp( ) | 2972 | * 19, Coded slice of an auxiliary coded picture without partitioning slice_layer_without_partitioning_rbsp( ) |
| 2973 | * 20, Coded slice extension slice_layer_extension_rbsp( ) | 2973 | * 20, Coded slice extension slice_layer_extension_rbsp( ) |
| 2974 | * the first ts message of apple sample: | 2974 | * the first ts message of apple sample: |
| 2975 | - * annexb 4B header, 2B aud(nal_unit_type:6)(0x09 0xf0) | ||
| 2976 | - * annexb 4B header, 19B sps(nal_unit_type:7) | ||
| 2977 | - * annexb 3B header, 4B pps(nal_unit_type:8) | ||
| 2978 | - * annexb 3B header, 12B nalu(nal_unit_type:6) | ||
| 2979 | - * annexb 3B header, 21B nalu(nal_unit_type:6) | ||
| 2980 | - * annexb 3B header, 2762B nalu(nal_unit_type:5) | ||
| 2981 | - * annexb 3B header, 3535B nalu(nal_unit_type:5) | 2975 | + * annexb 4B header, 2B aud(nal_unit_type:6)(0x09 0xf0)(AUD) |
| 2976 | + * annexb 4B header, 19B sps(nal_unit_type:7)(SPS) | ||
| 2977 | + * annexb 3B header, 4B pps(nal_unit_type:8)(PPS) | ||
| 2978 | + * annexb 3B header, 12B nalu(nal_unit_type:6)(SEI) | ||
| 2979 | + * annexb 3B header, 21B nalu(nal_unit_type:6)(SEI) | ||
| 2980 | + * annexb 3B header, 2762B nalu(nal_unit_type:5)(IDR) | ||
| 2981 | + * annexb 3B header, 3535B nalu(nal_unit_type:5)(IDR) | ||
| 2982 | * the second ts message of apple ts sample: | 2982 | * the second ts message of apple ts sample: |
| 2983 | - * annexb 4B header, 2B aud(nal_unit_type:6)(0x09 0xf0) | ||
| 2984 | - * annexb 3B header, 21B nalu(nal_unit_type:6) | ||
| 2985 | - * annexb 3B header, 379B nalu(nal_unit_type:1) | ||
| 2986 | - * annexb 3B header, 406B nalu(nal_unit_type:1) | 2983 | + * annexb 4B header, 2B aud(nal_unit_type:6)(0x09 0xf0)(AUD) |
| 2984 | + * annexb 3B header, 21B nalu(nal_unit_type:6)(SEI) | ||
| 2985 | + * annexb 3B header, 379B nalu(nal_unit_type:1)(non-IDR,P/B) | ||
| 2986 | + * annexb 3B header, 406B nalu(nal_unit_type:1)(non-IDR,P/B) | ||
| 2987 | + * @remark we use the sequence of apple samples http://ossrs.net/apple-sample/bipbopall.m3u8 | ||
| 2987 | */ | 2988 | */ |
| 2988 | static u_int8_t fresh_nalu_header[] = { 0x00, 0x00, 0x00, 0x01 }; | 2989 | static u_int8_t fresh_nalu_header[] = { 0x00, 0x00, 0x00, 0x01 }; |
| 2989 | static u_int8_t cont_nalu_header[] = { 0x00, 0x00, 0x01 }; | 2990 | static u_int8_t cont_nalu_header[] = { 0x00, 0x00, 0x01 }; |
-
请 注册 或 登录 后发表评论