Prior to this it could theoretically become negative and read out of array. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>