From 38e3073caa45eca8e12186582ad0533038b42eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=B6=85=E9=80=B8?= <linchaoyi.cy@bytedance.com> Date: Fri, 9 Jun 2023 10:47:58 +0800 Subject: [PATCH] JVET-AD0091: add one CHECK for nnpfc_padding_type --- source/Lib/DecoderLib/SEIread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Lib/DecoderLib/SEIread.cpp b/source/Lib/DecoderLib/SEIread.cpp index 031afe497..394dda59a 100644 --- a/source/Lib/DecoderLib/SEIread.cpp +++ b/source/Lib/DecoderLib/SEIread.cpp @@ -3132,6 +3132,7 @@ void SEIReader::xParseSEINNPostFilterCharacteristics(SEINeuralNetworkPostFilterC sei.m_paddingType = val; #if JVET_AD0091 CHECK((sei.m_paddingType >= 5) && (sei.m_paddingType <= 15), "Reserved nnpfc_padding_type value, shall ignore the SEI message"); + CHECK(sei.m_paddingType > 15, "Values of nnpfc_padding_type greater than 15 shall not be present in bitstreams"); #endif if (sei.m_paddingType == NNPC_PaddingType::FIXED_PADDING) -- GitLab