From 4fbd45e4084f5c290d8e06c0c8e75d46ed25dd2f Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 29 Apr 2020 10:01:56 +0800 Subject: [PATCH] =?UTF-8?q?h265=E6=96=B0=E5=A2=9E=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=A4=E7=A7=8D=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/H265.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/Extension/H265.h b/src/Extension/H265.h index 71069d11..fca162c3 100644 --- a/src/Extension/H265.h +++ b/src/Extension/H265.h @@ -46,6 +46,9 @@ public: NAL_IDR_W_RADL = 19, NAL_IDR_N_LP = 20, NAL_CRA_NUT = 21, + NAL_RSV_IRAP_VCL22 = 22, + NAL_RSV_IRAP_VCL23 = 23, + NAL_VPS = 32, NAL_SPS = 33, NAL_PPS = 34, @@ -101,17 +104,7 @@ public: } static bool isKeyFrame(int type) { - switch (type) { - case NAL_BLA_N_LP: - case NAL_BLA_W_LP: - case NAL_BLA_W_RADL: - case NAL_CRA_NUT: - case NAL_IDR_N_LP: - case NAL_IDR_W_RADL: - return true; - default: - return false; - } + return type >= NAL_BLA_W_LP && type <= NAL_RSV_IRAP_VCL23; } public: