mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-04 09:47:33 +08:00
优化代码
This commit is contained in:
@@ -29,12 +29,12 @@
|
||||
|
||||
#include "Frame.h"
|
||||
#include "Track.h"
|
||||
#include "RtspMuxer/RtspSdp.h"
|
||||
#include "Util/base64.h"
|
||||
using namespace toolkit;
|
||||
#define H265_TYPE(v) (((uint8_t)(v) >> 1) & 0x3f)
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
#define H265_TYPE(v) (((uint8_t)(v) >> 1) & 0x3f)
|
||||
|
||||
/**
|
||||
* 265帧类
|
||||
*/
|
||||
@@ -254,6 +254,9 @@ private:
|
||||
return std::make_shared<std::remove_reference<decltype(*this)>::type>(*this);
|
||||
}
|
||||
|
||||
//生成sdp
|
||||
Sdp::Ptr getSdp() override ;
|
||||
|
||||
//在idr帧前插入vps sps pps帧
|
||||
void insertConfigFrame(const Frame::Ptr &frame){
|
||||
if(_last_frame_is_idr){
|
||||
|
||||
Reference in New Issue
Block a user