diff --git a/source/Lib/CommonLib/SEI.cpp b/source/Lib/CommonLib/SEI.cpp
index 5a0a313c3cefc7a1a513f0ef09c073419ee8a7e0..e693ae86f4a5d2480a0099465948a2f672d7f627 100644
--- a/source/Lib/CommonLib/SEI.cpp
+++ b/source/Lib/CommonLib/SEI.cpp
@@ -264,7 +264,8 @@ uint32_t SEIMultiviewAcquisitionInfo::xGetSyntaxElementLen( int expo, int prec,
   }
 
   assert( val >= 0 );
-  assert( val <= ( ( 1 << len )- 1) );
+  const uint64_t MAX_VAL = (1llu << len) - 1;
+  CHECK( val > MAX_VAL, "Value is too big" );
   return len;
 }