From 2867affd2ac37e9190151bc80ecf357b2e06d0c8 Mon Sep 17 00:00:00 2001 From: yinjiaoyuan Date: Fri, 8 Jan 2021 13:34:19 +0800 Subject: [PATCH] For #1747, Fix build fail bug for H.265 --- trunk/src/kernel/srs_kernel_ts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 trunk/src/kernel/srs_kernel_ts.cpp diff --git a/trunk/src/kernel/srs_kernel_ts.cpp b/trunk/src/kernel/srs_kernel_ts.cpp old mode 100644 new mode 100755 index 6f031cf49e..be12abd3ed --- a/trunk/src/kernel/srs_kernel_ts.cpp +++ b/trunk/src/kernel/srs_kernel_ts.cpp @@ -463,7 +463,7 @@ srs_error_t SrsTsContext::encode_pes(ISrsStreamWriter* writer, SrsTsMessage* msg return err; } - bool invalid_codec = (sid != SrsTsStreamVideoH264 && && sid != SrsTsStreamAudioMp3 && sid != SrsTsStreamAudioAAC); + bool invalid_codec = (sid != SrsTsStreamVideoH264 && sid != SrsTsStreamAudioMp3 && sid != SrsTsStreamAudioAAC); #ifdef SRS_H265 invalid_codec = invalid_codec && (sid != SrsTsStreamVideoHEVC); #endif @@ -808,7 +808,7 @@ SrsTsPacket* SrsTsPacket::create_pmt(SrsTsContext* context, } // if h.264 specified, use video to carry pcr. - bool is_valid_codec = (vs == SrsTsStreamVideoH264); + /*bool*/ is_valid_codec = (vs == SrsTsStreamVideoH264); #ifdef SRS_H265 is_valid_codec = is_valid_codec || (vs == SrsTsStreamVideoHEVC); #endif