From 669e14adc8dfc29f17c521a3c72d68e771f6724f Mon Sep 17 00:00:00 2001 From: bdchoi <b.d.choi79@gmail.com> Date: Sat, 9 Jan 2021 20:02:52 -0800 Subject: [PATCH] Fix #1438: Decoder crashes when decoding multi-layer bitstream --- source/Lib/CommonLib/Slice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Lib/CommonLib/Slice.cpp b/source/Lib/CommonLib/Slice.cpp index d71124afbb..bb66ab8892 100644 --- a/source/Lib/CommonLib/Slice.cpp +++ b/source/Lib/CommonLib/Slice.cpp @@ -715,7 +715,7 @@ void Slice::checkRPL(const ReferencePictureList* pRPL0, const ReferencePictureLi const int maxTidILRefPicsPlus1 = vps->getMaxTidIlRefPicsPlus1(layerIdx, pcRefPic->layerId); bool cond4 = (pcRefPic->temporalId < maxTidILRefPicsPlus1); - CHECK((cond1 && cond2) || cond3 || cond4, + CHECK(!((cond1 && cond2) || cond3 || cond4), "Either of the following conditions shall apply for the picture referred to by each ILRP entry, when " "present, in RefPicList[ 0 ] or RefPicList[ 1 ] of a slice of the current picture:-The picture is a " "GDR picture with " -- GitLab