完善rtsp相关代码逻辑

This commit is contained in:
xiongziliang
2018-10-23 11:38:56 +08:00
parent c1e91620d2
commit 2307404847
7 changed files with 79 additions and 123 deletions

View File

@@ -45,7 +45,7 @@ private:
/**
* aac adts转rtp类
*/
class AACRtpEncoder : public RtpEncoder {
class AACRtpEncoder : public AACRtpDecoder , public RtpInfo {
public:
/**
* @param ui32Ssrc ssrc
@@ -67,15 +67,6 @@ public:
* @param key_pos 此参数内部强制转换为false,请忽略之
*/
void inputFrame(const Frame::Ptr &frame, bool key_pos = false) override;
TrackType getTrackType() const override{
return TrackAudio;
}
CodecId getCodecId() const override{
return CodecAAC;
}
private:
void makeAACRtp(const void *pData, unsigned int uiLen, bool bMark, uint32_t uiStamp);
private: