avi: Use the correct data type