mirror of
https://github.com/opencv/opencv.git
synced 2026-11-27 11:57:11 -06:00
The padding mask (1 << bitIdx) - 1 overflows int when bitIdx is 31, which happens whenever the entropy-coded data of a frame leaves exactly 31 free bits in the last word. Compute the mask in a wider unsigned type.