h264: fix variable overflow after a few years of video playback