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