Skip to content

Commit

Permalink
For #1747, Fix build fail bug for H.265
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiaoyuan authored and winlinvip committed Jan 8, 2021
1 parent 81e3641 commit 2867aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/src/kernel/srs_kernel_ts.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2867aff

Please sign in to comment.