video: Use 'int' for loop variables instead of short