transform: fix off-by-one (fixes #10505)
vlc: fix warning