From 36a5bf7dc199d91737e7a495e7da4503e916edd5 Mon Sep 17 00:00:00 2001
From: Pierrick Bouvier <pierrick.bouvier@allegrodvt.com>
Date: Tue, 25 Feb 2020 09:30:37 +0100
Subject: [PATCH] fix check for one_slice_per_pic_constraint_flag

---
 source/Lib/DecoderLib/DecLib.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/Lib/DecoderLib/DecLib.cpp b/source/Lib/DecoderLib/DecLib.cpp
index 5e5ee9810..9a823d5ba 100644
--- a/source/Lib/DecoderLib/DecLib.cpp
+++ b/source/Lib/DecoderLib/DecLib.cpp
@@ -1501,7 +1501,7 @@ void DecLib::xCheckParameterSetConstraints(const int layerId)
   }
   if (sps->getProfileTierLevel()->getConstraintInfo()->getOneSlicePerPicConstraintFlag())
   {
-    CHECK( pps->getNumSlicesInPic() != 0, "When one_slice_per_pic_constraint_flag is equal to 1, each picture shall contain only one slice");
+    CHECK( pps->getNumSlicesInPic() != 1, "When one_slice_per_pic_constraint_flag is equal to 1, each picture shall contain only one slice");
   }
 #endif
 
-- 
GitLab