Skip to content

Commit

Permalink
H265: 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 Dec 4, 2021
1 parent 3ca1107 commit e355f3c
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 @@ -444,7 +444,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 @@ -789,7 +789,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 e355f3c

Please sign in to comment.