From e62c3a4e0e413023e9bdf9b90012b0f6138fda55 Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 8 Nov 2014 16:59:42 +0800 Subject: [PATCH] for bug #66, clear the sps and pps. --- trunk/src/libs/srs_librtmp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/src/libs/srs_librtmp.cpp b/trunk/src/libs/srs_librtmp.cpp index 6b59bacf0..87a567968 100644 --- a/trunk/src/libs/srs_librtmp.cpp +++ b/trunk/src/libs/srs_librtmp.cpp @@ -1163,6 +1163,10 @@ int __srs_write_h264_sps_pps(Context* context, u_int32_t dts, u_int32_t pts) stream.write_string(context->h264_pps); } + // reset sps and pps. + context->h264_pps = ""; + context->h264_sps = ""; + // TODO: FIXME: for more profile. // 5.3.4.2.1 Syntax, H.264-AVC-ISO_IEC_14496-15.pdf, page 16 // profile_idc == 100 || profile_idc == 110 || profile_idc == 122 || profile_idc == 144