From 51a86f502fe2cdd27580666a3a6639edbdffbc12 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 21 May 2020 14:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84h264=E5=B8=A7split=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/H265.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/H265.h b/src/Extension/H265.h index 31a68415..e7bd30c7 100644 --- a/src/Extension/H265.h +++ b/src/Extension/H265.h @@ -199,7 +199,7 @@ public: */ void inputFrame(const Frame::Ptr &frame) override{ int type = H265_TYPE(*((uint8_t *)frame->data() + frame->prefixSize())); - if(frame->configFrame()){ + if(frame->configFrame() || type == H265Frame::NAL_SEI_PREFIX){ splitH264(frame->data(), frame->size(), frame->prefixSize(), [&](const char *ptr, int len, int prefix){ H265FrameInternal::Ptr sub_frame = std::make_shared(frame, (char*)ptr, len, prefix); inputFrame_l(sub_frame);