indeo2: return meaningful error codes