avutil/cast5: Fix off by one error