1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

TS: Fix bug for codec detecting for HTTP-TS. v6.0.8 (#465)

This commit is contained in:
winlin 2022-12-26 18:30:12 +08:00
parent a6c926f985
commit 4b6f1b0fd6
3 changed files with 4 additions and 3 deletions

View file

@ -3271,9 +3271,9 @@ srs_error_t SrsTsTransmuxer::write_video(int64_t timestamp, char* data, int size
return err;
}
bool codec_ok = (format->vcodec->id != SrsVideoCodecIdAVC);
bool codec_ok = (format->vcodec->id == SrsVideoCodecIdAVC);
#ifdef SRS_H265
codec_ok = codec_ok ? true : (format->vcodec->id != SrsVideoCodecIdHEVC);
codec_ok = codec_ok ? true : (format->vcodec->id == SrsVideoCodecIdHEVC);
#endif
if (!codec_ok) {
return err;