Fix off-by-one introduced by commit 35dd89951d8bb1c094da65480e4197efdfb4e93c for BUILD_X264 < 76. Also fixes #610089.