update the buffer size when format is updated