正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -1163,6 +1163,10 @@ int __srs_write_h264_sps_pps(Context* context, u_int32_t dts, u_int32_t pts) | @@ -1163,6 +1163,10 @@ int __srs_write_h264_sps_pps(Context* context, u_int32_t dts, u_int32_t pts) | ||
| 1163 | stream.write_string(context->h264_pps); | 1163 | stream.write_string(context->h264_pps); |
| 1164 | } | 1164 | } |
| 1165 | 1165 | ||
| 1166 | + // reset sps and pps. | ||
| 1167 | + context->h264_pps = ""; | ||
| 1168 | + context->h264_sps = ""; | ||
| 1169 | + | ||
| 1166 | // TODO: FIXME: for more profile. | 1170 | // TODO: FIXME: for more profile. |
| 1167 | // 5.3.4.2.1 Syntax, H.264-AVC-ISO_IEC_14496-15.pdf, page 16 | 1171 | // 5.3.4.2.1 Syntax, H.264-AVC-ISO_IEC_14496-15.pdf, page 16 |
| 1168 | // profile_idc == 100 || profile_idc == 110 || profile_idc == 122 || profile_idc == 144 | 1172 | // profile_idc == 100 || profile_idc == 110 || profile_idc == 122 || profile_idc == 144 |
-
请 注册 或 登录 后发表评论