初步完成H264 的 RTMP打包解包

This commit is contained in:
xiongziliang
2018-10-24 12:01:40 +08:00
parent 3850ecec96
commit 6c9d50b04b
11 changed files with 404 additions and 17 deletions

View File

@@ -10,7 +10,7 @@
/**
* aac rtp转adts类
*/
class AACRtpDecoder : public RtpCodec {
class AACRtpDecoder : public RtpCodec , public ResourcePoolHelper<AACFrame> {
public:
typedef std::shared_ptr<AACRtpDecoder> Ptr;
@@ -39,7 +39,6 @@ private:
AACFrame::Ptr obtainFrame();
private:
AACFrame::Ptr m_adts;
ResourcePool<AACFrame> m_framePool;
uint32_t m_sampleRate;
};