mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-01 07:22:23 +08:00
优化代码
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#define RTP_RTPMAKER_H_
|
||||
|
||||
#include "Rtsp/RtspMediaSource.h"
|
||||
#include "Rtsp/Rtsp.h"
|
||||
#include "Util/logger.h"
|
||||
#include "Util/RingBuffer.h"
|
||||
#include "Util/TimeTicker.h"
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
typedef std::shared_ptr<RtpMaker_AAC> Ptr;
|
||||
RtpMaker_AAC(const onGetRTP &cb,
|
||||
uint32_t ui32Ssrc, int iMtuSize , int iSampleRate, uint8_t ui8PlayloadType = 97,
|
||||
uint8_t ui8Interleaved = 2) :
|
||||
uint8_t ui8Interleaved = TrackAudio * 2) :
|
||||
RtpMaker(cb, ui32Ssrc, iMtuSize,iSampleRate, ui8PlayloadType, ui8Interleaved) {
|
||||
}
|
||||
virtual ~RtpMaker_AAC() {
|
||||
|
||||
@@ -44,7 +44,7 @@ class RtpMaker_H264: public RtpMaker {
|
||||
public:
|
||||
typedef std::shared_ptr<RtpMaker_H264> Ptr;
|
||||
RtpMaker_H264(const onGetRTP &cb, uint32_t ui32Ssrc,int iMtuSize = 1400,int iSampleRate = 90000,
|
||||
uint8_t ui8PlayloadType = 96, uint8_t ui8Interleaved = 0) :
|
||||
uint8_t ui8PlayloadType = 96, uint8_t ui8Interleaved = TrackVideo * 2) :
|
||||
RtpMaker(cb, ui32Ssrc, iMtuSize,iSampleRate, ui8PlayloadType, ui8Interleaved) {
|
||||
}
|
||||
virtual ~RtpMaker_H264() {
|
||||
|
||||
Reference in New Issue
Block a user