mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
新增支持enhanced-rtmp h265 推流 (#2694)
This commit is contained in:
@@ -164,12 +164,8 @@ bool H264RtmpEncoder::inputFrame(const Frame::Ptr &frame) {
|
||||
//not config
|
||||
_rtmp_packet->buffer[1] = true;
|
||||
int32_t cts = pts - dts;
|
||||
if (cts < 0) {
|
||||
cts = 0;
|
||||
}
|
||||
//cts
|
||||
set_be24(&_rtmp_packet->buffer[2], cts);
|
||||
|
||||
_rtmp_packet->time_stamp = dts;
|
||||
_rtmp_packet->body_size = _rtmp_packet->buffer.size();
|
||||
_rtmp_packet->chunk_id = CHUNK_VIDEO;
|
||||
|
||||
Reference in New Issue
Block a user