初步完成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

@@ -13,7 +13,7 @@ using namespace ZL::Util;
/**
* h264 rtp解码类
*/
class H264RtpDecoder : public RtpCodec {
class H264RtpDecoder : public RtpCodec , public ResourcePoolHelper<H264Frame> {
public:
typedef std::shared_ptr<H264RtpDecoder> Ptr;
@@ -40,7 +40,6 @@ private:
H264Frame::Ptr obtainFrame();
private:
H264Frame::Ptr m_h264frame;
ResourcePool<H264Frame> m_framePool;
};
/**