Commit 0e64e68d authored by Matthias Grundmann's avatar Matthias Grundmann Committed by GitHub

Update cap_mjpeg_encoder.cpp

Avoid shifting by 32bits; undefined behavior according to c - standard
parent 06b0fe35
......@@ -384,7 +384,7 @@ public:
}
else
{
data[m_pos] |= (tempval << bits_free);
data[m_pos] |= (bits_free == 32) ? tempval : (tempval << bits_free);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment