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:
parent
a6c926f985
commit
4b6f1b0fd6
3 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue