Update cap_mjpeg_encoder.cpp

Avoid shifting by 32bits; undefined behavior according to c - standard
pull/8712/head
Matthias Grundmann 8 years ago committed by GitHub
parent 06b0fe35d2
commit 0e64e68d31
  1. 2
      modules/videoio/src/cap_mjpeg_encoder.cpp

@ -384,7 +384,7 @@ public:
}
else
{
data[m_pos] |= (tempval << bits_free);
data[m_pos] |= (bits_free == 32) ? tempval : (tempval << bits_free);
}
}

Loading…
Cancel
Save