Fix == operator in jp2k seq parser 14/head
authorAnton Artiukh <anton@qubecinema.com>
Fri, 13 Sep 2019 08:50:47 +0000 (11:50 +0300)
committerAnton Artiukh <anton@qubecinema.com>
Fri, 13 Sep 2019 08:50:47 +0000 (11:50 +0300)
src/JP2K_Sequence_Parser.cpp

index a0fd5d0b9c2fde47ac8143fe13a5cd5b1cd228b4..a08044000ba1df1ab804b0fb27da31112fe4b485 100755 (executable)
@@ -229,7 +229,7 @@ operator==(const ASDCP::JP2K::CodingStyleDefault_t& lhs, const ASDCP::JP2K::Codi
 
   for ( ui32_t i = 0; i < sizeof(ui16_t); i++ )
     {
-      if ( lhs.SGcod.NumberOfLayers[i] != lhs.SGcod.NumberOfLayers[i]  )
+      if ( lhs.SGcod.NumberOfLayers[i] != rhs.SGcod.NumberOfLayers[i]  )
        return false;
     }