deshake: fix off by 2 error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>