From 9e5babf9db52e64bdae60137be7696e56241fca6 Mon Sep 17 00:00:00 2001 From: xingzilong <xingzilong@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 18 八月 2017 18:12:17 +0800 Subject: [PATCH] H264 NALU解析 并在RTSPServer判断 --- RtspFace/PL_AndroidMediaCodecDecoder.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/RtspFace/PL_AndroidMediaCodecDecoder.h b/RtspFace/PL_AndroidMediaCodecDecoder.h index 77fab7a..2d5f979 100644 --- a/RtspFace/PL_AndroidMediaCodecDecoder.h +++ b/RtspFace/PL_AndroidMediaCodecDecoder.h @@ -40,6 +40,8 @@ bool ptsUseAbsoluteTime; + bool initCodecInPay; + PL_AndroidMediaCodecDecoder_Config() : ak_height(0), ak_mime(), @@ -51,7 +53,9 @@ releaseOutputBuffIdx(true), releaseOutputBuffIdxInPay(false), generateDecodedDataPerFrame(0), - ptsUseAbsoluteTime(false) + ptsUseAbsoluteTime(false), + + initCodecInPay(true) {} }; @@ -69,6 +73,9 @@ private: void* internal; + + void aux_is_set(); + bool init_codec(); }; PipeLineElem* create_PL_AndroidMediaCodecDecoder(); -- Gitblit v1.8.0