Skip to content

renderer: fix unsigned integer overflow in overlay indices

For complex subtitles, it's quite common to have more than u16 indices. We were wrapping around and overwriting already added indices, resulting in all sorts of weird overlay behavior.

Fixes: https://github.com/mpv-player/mpv/issues/14442

Merge request reports

Loading