mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
GB: Support H.265 for GB28181 (#3408)
Co-authored-by: chundonglinlin <chundonglinlin@163.com> Co-authored-by: stone <bluestn@163.com> Co-authored-by: Winlin <winlin@vip.126.com>
This commit is contained in:
parent
4a089935cd
commit
4a5f479a0c
6 changed files with 242 additions and 4 deletions
|
@ -974,6 +974,13 @@ srs_error_t SrsRtcFromRtmpBridge::on_video(SrsSharedPtrMessage* msg)
|
|||
return err;
|
||||
}
|
||||
|
||||
// WebRTC NOT support HEVC.
|
||||
#ifdef SRS_H265
|
||||
if (format->vcodec->id == SrsVideoCodecIdHEVC) {
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
|
||||
// cache the sequence header if h264
|
||||
bool is_sequence_header = SrsFlvVideo::sh(msg->payload, msg->size);
|
||||
if (is_sequence_header && (err = meta->update_vsh(msg)) != srs_success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue